Index: tests/compiler/dart2js/inference/send_test.dart |
diff --git a/tests/compiler/dart2js/inference/send_test.dart b/tests/compiler/dart2js/inference/send_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4aaae6d6df7541108a77ccf6887ca6a22c402654 |
--- /dev/null |
+++ b/tests/compiler/dart2js/inference/send_test.dart |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+import 'package:async_helper/async_helper.dart'; |
+import 'inference_test_helper.dart'; |
+ |
+const List<String> TESTS = const <String>[ |
+ ''' |
+class Super { |
+ var field = 42; |
+} |
+class Sub extends Super { |
+ method() { |
+ var a = super.field = new Sub(); |
+ return a.@{[exact=Sub]}method; |
+ } |
+} |
+main() { |
+ new Sub().@{[exact=Sub]}method(); |
+} |
+''', |
+]; |
+ |
+main() { |
+ asyncTest(() async { |
+ for (String annotatedCode in TESTS) { |
+ await checkCode(annotatedCode); |
+ } |
+ }); |
+} |