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 library analyzer.test.src.task.strong.checker_test; | 5 library analyzer.test.src.task.strong.checker_test; |
6 | 6 |
7 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 7 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
8 | 8 |
9 import 'strong_test_helper.dart'; | 9 import 'strong_test_helper.dart'; |
10 | 10 |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 a[b] += d; | 342 a[b] += d; |
343 a[/*info:DYNAMIC_CAST*/c] += d; | 343 a[/*info:DYNAMIC_CAST*/c] += d; |
344 a[/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/z] += d; | 344 a[/*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/z] += d; |
345 a[b] += /*info:DYNAMIC_CAST*/c; | 345 a[b] += /*info:DYNAMIC_CAST*/c; |
346 a[b] += /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/z; | 346 a[b] += /*error:ARGUMENT_TYPE_NOT_ASSIGNABLE*/z; |
347 /*info:DYNAMIC_INVOKE,info:DYNAMIC_INVOKE*/c[b] += d; | 347 /*info:DYNAMIC_INVOKE,info:DYNAMIC_INVOKE*/c[b] += d; |
348 } | 348 } |
349 '''); | 349 '''); |
350 } | 350 } |
351 | 351 |
352 test_constantGenericTypeArg_explict() async { | 352 test_constantGenericTypeArg_explicit() async { |
353 // Regression test for https://github.com/dart-lang/sdk/issues/26141 | 353 // Regression test for https://github.com/dart-lang/sdk/issues/26141 |
354 await checkFile(''' | 354 await checkFile(''' |
355 abstract class Equality<R> {} | 355 abstract class Equality<R> {} |
356 abstract class EqualityBase<R> implements Equality<R> { | 356 abstract class EqualityBase<R> implements Equality<R> { |
357 final C<R> c = const C<R>(); | 357 final C<R> c = const C<R>(); |
358 const EqualityBase(); | 358 const EqualityBase(); |
359 } | 359 } |
360 class DefaultEquality<S> extends EqualityBase<S> { | 360 class DefaultEquality<S> extends EqualityBase<S> { |
361 const DefaultEquality(); | 361 const DefaultEquality(); |
362 } | 362 } |
(...skipping 3844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4207 class CheckerTest_Driver extends CheckerTest { | 4207 class CheckerTest_Driver extends CheckerTest { |
4208 @override | 4208 @override |
4209 bool get enableNewAnalysisDriver => true; | 4209 bool get enableNewAnalysisDriver => true; |
4210 | 4210 |
4211 @failingTest | 4211 @failingTest |
4212 @override | 4212 @override |
4213 test_covariantOverride_fields() async { | 4213 test_covariantOverride_fields() async { |
4214 await super.test_covariantOverride_fields(); | 4214 await super.test_covariantOverride_fields(); |
4215 } | 4215 } |
4216 } | 4216 } |
OLD | NEW |