Index: lib/src/codegen/js_codegen.dart |
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart |
index 2a85f77cae73b54bea1a75ceb03ebe27cbfcd755..935fdf131ec06d3b4712de2af2a5612e7e6d4adc 100644 |
--- a/lib/src/codegen/js_codegen.dart |
+++ b/lib/src/codegen/js_codegen.dart |
@@ -993,6 +993,9 @@ class JSCodegenVisitor extends GeneralizingAstVisitor with ConversionVisitor { |
type.normalParameterTypes.every(_typeIsLoaded)); |
} |
if (type.isDynamic || type.isVoid || type.isBottom) return true; |
+ if (type is InterfaceType && !type.typeArguments.every(_typeIsLoaded)) { |
vsm
2015/05/20 16:33:34
Should this be ParameterizedType instead of Interf
Leaf
2015/05/20 16:43:24
Yes, good catch. Fixed now, test added.
|
+ return false; |
+ } |
return _loader.isLoaded(type.element); |
} |