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

Side by Side Diff: tests/compiler/dart2js/inference/data/super_set.dart

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. Created 3 years, 6 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
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class Super { 5 class Super {
6 /*Super.field:Union of [[exact=JSUInt31], [exact=Sub]]*/ 6 /*Super.field:Union of [[exact=JSUInt31], [exact=Sub]]*/
7 var field = 42; 7 var field = 42;
8 } 8 }
9 9
10 class Sub extends Super { 10 class Sub extends Super {
11 /*Sub.method:[subclass=Closure]*/ 11 /*Sub.method:[subclass=Closure]*/
12 method() { 12 method() {
13 // ignore: INVALID_ASSIGNMENT
13 var a = super.field = new Sub(); 14 var a = super.field = new Sub();
14 return a./*[exact=Sub]*/method; 15 return a. /*[exact=Sub]*/ method;
Johnni Winther 2017/06/16 08:36:00 The added space breaks the inference tests.
ahe 2017/06/16 08:50:23 OK. That's on dartfmt. I'll discuss this in person
15 } 16 }
16 } 17 }
17 18
18 /*main:[null]*/ 19 /*main:[null]*/
19 main() { 20 main() {
20 new Sub()./*[exact=Sub]*/method(); 21 new Sub(). /*[exact=Sub]*/ method();
21 } 22 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/in_user_code_test.dart ('k') | tests/compiler/dart2js/inference/inference_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698