Index: tests/compiler/dart2js/js_model/model_test.dart |
diff --git a/tests/compiler/dart2js/js_model/model_test.dart b/tests/compiler/dart2js/js_model/model_test.dart |
index 550248e0015269b98037bb0a973d7a42d1f3daf8..fe829f09a8425b7b0e34d7972935acd42f433c76 100644 |
--- a/tests/compiler/dart2js/js_model/model_test.dart |
+++ b/tests/compiler/dart2js/js_model/model_test.dart |
@@ -17,6 +17,20 @@ const Map<String, String> SOURCE = const <String, String>{ |
'main.dart': r''' |
foo({named}) => 1; |
bar(a) => !a; |
+class Class { |
+ var field; |
+ |
+ Class(); |
+ Class.named(this.field); |
+ |
+ method() {} |
+} |
+ |
+class SubClass extends Class { |
+ method() { |
+ super.method(); |
+ } |
+} |
main() { |
foo(); |
@@ -24,6 +38,8 @@ main() { |
[]; |
{}; |
new Object(); |
+ new Class.named(''); |
+ new SubClass().method(); |
} |
''' |
}; |