| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /// Common test code that is run by 3 tests: mirrors_test.dart, | 5 /// Common test code that is run by 3 tests: mirrors_test.dart, |
| 6 /// mirrors_used_test.dart, and static_test.dart. | 6 /// mirrors_used_test.dart, and static_test.dart. |
| 7 library smoke.test.common; | 7 library smoke.test.common; |
| 8 | 8 |
| 9 import 'package:smoke/smoke.dart' as smoke; | 9 import 'package:smoke/smoke.dart' as smoke; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 class E2 extends E {} | 363 class E2 extends E {} |
| 364 | 364 |
| 365 class F { | 365 class F { |
| 366 static int staticMethod(A a) => a.i; | 366 static int staticMethod(A a) => a.i; |
| 367 } | 367 } |
| 368 | 368 |
| 369 class F2 extends F {} | 369 class F2 extends F {} |
| 370 | 370 |
| 371 class Annot { const Annot(); } | 371 class Annot { const Annot(); } |
| 372 class AnnotB extends Annot { const AnnotB(); } | 372 class AnnotB extends Annot { const AnnotB(); } |
| 373 class AnnotC { const AnnotC({bool named: false}); } |
| 373 const a1 = const Annot(); | 374 const a1 = const Annot(); |
| 374 const a2 = 32; | 375 const a2 = 32; |
| 375 const a3 = const AnnotB(); | 376 const a3 = const AnnotB(); |
| 376 | 377 |
| 377 | 378 |
| 378 class G { | 379 class G { |
| 379 int a; | 380 int a; |
| 380 @a1 int b; | 381 @a1 int b; |
| 381 int c; | 382 int c; |
| 382 @a2 int d; | 383 @a2 int d; |
| 383 } | 384 } |
| 384 | 385 |
| 385 class H extends G { | 386 class H extends G { |
| 386 int e; | 387 int e; |
| 387 @a1 int f; | 388 @a1 int f; |
| 388 @a1 int g; | 389 @a1 int g; |
| 389 @a2 int h; | 390 @a2 int h; |
| 390 @a3 int i; | 391 @a3 int i; |
| 391 } | 392 } |
| 393 |
| 394 class K { |
| 395 @AnnotC(named: true) int k; |
| 396 @AnnotC() int k2; |
| 397 } |
| OLD | NEW |