From 3bd382ae68eea0b40d60a0491aad760ae757ef2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Mon, 8 Mar 2021 19:22:46 +0100 Subject: fix return type error to be correct --- src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vm.rs b/src/vm.rs index e001ebc..2859d83 100644 --- a/src/vm.rs +++ b/src/vm.rs @@ -656,7 +656,7 @@ impl VM { let ret = inner.ret(); if Type::from(&a) != *ret { - error!(self, ErrorKind::TypeMismatch(a.into(), ret.clone()), + error!(self, ErrorKind::TypeMismatch(ret.clone(), a.into()), "Value does not match return type."); } } -- cgit v1.2.1