Skip to content

Instantly share code, notes, and snippets.

@dobesv
Created March 9, 2012 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dobesv/2005093 to your computer and use it in GitHub Desktop.
Save dobesv/2005093 to your computer and use it in GitHub Desktop.
Handle unknown type during ResolveCall
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