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 test.src.serialization.elements_test; | 5 library test.src.serialization.elements_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/constant/value.dart'; | 8 import 'package:analyzer/dart/constant/value.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
(...skipping 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3567 '''); | 3567 '''); |
3568 } | 3568 } |
3569 | 3569 |
3570 test_instantiateToBounds_boundRefersToEarlierTypeArgument() { | 3570 test_instantiateToBounds_boundRefersToEarlierTypeArgument() { |
3571 checkLibrary(''' | 3571 checkLibrary(''' |
3572 class C<S extends num, T extends C<S, T>> {} | 3572 class C<S extends num, T extends C<S, T>> {} |
3573 C c; | 3573 C c; |
3574 '''); | 3574 '''); |
3575 } | 3575 } |
3576 | 3576 |
3577 test_instantiateToBounds_boundRefersToItself() { | 3577 solo_test_instantiateToBounds_boundRefersToItself() { |
Brian Wilkerson
2016/09/29 20:39:09
Remove "solo_".
Jennifer Messerly
2016/09/30 00:22:38
remove "solo_"?
| |
3578 checkLibrary(''' | 3578 checkLibrary(''' |
3579 class C<T extends C<T>> {} | 3579 class C<T extends C<int>> {} |
3580 C c; | 3580 C c; |
3581 var c2 = new C(); | |
3582 class B { | |
3583 var c3 = new C(); | |
3584 } | |
3581 '''); | 3585 '''); |
3582 } | 3586 } |
3583 | 3587 |
3584 test_instantiateToBounds_boundRefersToLaterTypeArgument() { | 3588 test_instantiateToBounds_boundRefersToLaterTypeArgument() { |
3585 checkLibrary(''' | 3589 checkLibrary(''' |
3586 class C<T extends C<T, U>, U extends num> {} | 3590 class C<T extends C<T, U>, U extends num> {} |
3587 C c; | 3591 C c; |
3588 '''); | 3592 '''); |
3589 } | 3593 } |
3590 | 3594 |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4673 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4677 fail('Unexpectedly tried to get unlinked summary for $uri'); |
4674 } | 4678 } |
4675 return serializedUnit; | 4679 return serializedUnit; |
4676 } | 4680 } |
4677 | 4681 |
4678 @override | 4682 @override |
4679 bool hasLibrarySummary(String uri) { | 4683 bool hasLibrarySummary(String uri) { |
4680 return true; | 4684 return true; |
4681 } | 4685 } |
4682 } | 4686 } |
OLD | NEW |