Created
March 9, 2012 04:54
-
-
Save dobesv/2005093 to your computer and use it in GitHub Desktop.
Handle unknown type during ResolveCall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 7b06445b390c src/compiler/fan/util/CallResolver.fan | |
--- a/src/compiler/fan/util/CallResolver.fan Thu Mar 08 16:54:10 2012 -0500 | |
+++ b/src/compiler/fan/util/CallResolver.fan Fri Mar 09 12:53:30 2012 +0800 | |
@@ -71,6 +71,12 @@ | |
ffiCoercion | |
return result | |
} | |
+ catch(UnknownTypeErr err) | |
+ { | |
+ expr.ctype = ns.error | |
+ this.err("Unknown type $err.msg while resolving $expr", expr.loc) | |
+ return expr | |
+ } | |
catch (CompilerErr err) | |
{ | |
expr.ctype = ns.error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment