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

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

Issue 3001803002: Migrate block 114 (and some of 113). (Closed)
Patch Set: Tweak app_jit status. 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) 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 // Test that a type variable can be used to declare local variables, and that 5 // Test that a type variable can be used to declare local variables, and that
6 // these local variables are of correct type. 6 // these local variables are of correct type.
7 7
8 library generic_methods_local_variable_declaration_test; 8 library generic_methods_local_variable_declaration_test;
9 9
10 import "package:expect/expect.dart"; 10 import "package:expect/expect.dart";
(...skipping 30 matching lines...) Expand all
41 return anotherName; 41 return anotherName;
42 } 42 }
43 43
44 main() { 44 main() {
45 A a = new A(); 45 A a = new A();
46 B b = new B(); 46 B b = new B();
47 47
48 Expect.equals(fun<A>(a), "instance of A"); 48 Expect.equals(fun<A>(a), "instance of A");
49 Expect.equals(fun<B>(b), "instance of B"); 49 Expect.equals(fun<B>(b), "instance of B");
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698