Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Tests for type inference. | 5 /// Tests for type inference. |
| 6 library ddc.test.inferred_type_test; | 6 library ddc.test.inferred_type_test; |
| 7 | 7 |
| 8 import 'package:unittest/compact_vm_config.dart'; | 8 import 'package:unittest/compact_vm_config.dart'; |
| 9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 10 | 10 |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 372 } | 372 } |
| 373 ''', | 373 ''', |
| 374 '/e.dart': ''' | 374 '/e.dart': ''' |
| 375 part "e2.dart"; | 375 part "e2.dart"; |
| 376 | 376 |
| 377 class E { | 377 class E { |
| 378 static final e1 = 1; | 378 static final e1 = 1; |
| 379 final e2 = 1; | 379 final e2 = 1; |
| 380 } | 380 } |
| 381 ''', | 381 ''', |
| 382 '/e2.dart': '', | |
|
Jennifer Messerly
2015/02/27 16:53:32
duplicate map keys (it's defined below)
| |
| 383 '/f.dart': ''' | 382 '/f.dart': ''' |
| 384 part "f2.dart"; | 383 part "f2.dart"; |
| 385 ''', | 384 ''', |
| 386 '/e2.dart': ''' | 385 '/e2.dart': ''' |
| 387 class F { | 386 class F { |
| 388 static final f1 = 1; | 387 static final f1 = 1; |
| 389 final f2 = 1; | 388 final f2 = 1; |
| 390 } | 389 } |
| 391 ''', | 390 ''', |
| 392 '/main.dart': ''' | 391 '/main.dart': ''' |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 926 I3 get a => null; | 925 I3 get a => null; |
| 927 } | 926 } |
| 928 | 927 |
| 929 class C2 extends A implements B { | 928 class C2 extends A implements B { |
| 930 /*severe:InvalidMethodOverride*/get a => null; | 929 /*severe:InvalidMethodOverride*/get a => null; |
| 931 } | 930 } |
| 932 ''' | 931 ''' |
| 933 }, inferFromOverrides: true); | 932 }, inferFromOverrides: true); |
| 934 }); | 933 }); |
| 935 } | 934 } |
| OLD | NEW |