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

Side by Side Diff: tests/language_2/type_propagation_assert_assignable_test.dart

Issue 3007803002: Migrate block 162 to Dart 2.0.
Patch Set: Created 3 years, 3 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Check that type of the AssertAssignable is recomputed correctly. 4 // Check that type of the AssertAssignable is recomputed correctly.
5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 class A { 9 class A {
10 final p; 10 final p;
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 main() { 40 main() {
41 final a = new A(new B(new A("haha", true), false), false); 41 final a = new A(new B(new A("haha", true), false), false);
42 42
43 for (var i = 0; i < 20; i++) { 43 for (var i = 0; i < 20; i++) {
44 Expect.isTrue(foo(a)); 44 Expect.isTrue(foo(a));
45 } 45 }
46 Expect.isTrue(foo(a)); 46 Expect.isTrue(foo(a));
47 } 47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698