Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Side by Side Diff: tests/compiler/dart2js/inference/send_test.dart

Issue 2656583003: Add inference test functionality based on code point id. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'package:async_helper/async_helper.dart';
6 import 'inference_test_helper.dart';
7
8 const List<String> TESTS = const <String>[
Siggi Cherem (dart-lang) 2017/01/24 21:05:59 this would also be a great candidate for using pac
Johnni Winther 2017/01/25 13:28:14 I know :)
9 '''
10 class Super {
11 var field = 42;
12 }
13 class Sub extends Super {
14 method() {
15 var a = super.field = new Sub();
16 return a.@{[exact=Sub]}method;
Johnni Winther 2017/01/24 12:07:40 This test would have caught error in issue #27830.
17 }
18 }
19 main() {
20 new Sub().@{[exact=Sub]}method();
21 }
22 ''',
23 ];
24
25 main() {
26 asyncTest(() async {
27 for (String annotatedCode in TESTS) {
28 await checkCode(annotatedCode);
29 }
30 });
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698