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

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 2244043002: Fix instantiateToBounds behavior in summary resynthesizer to match that of StrongTypeSystemImpl.ins… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_strong_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'dart:convert'; 7 import 'dart:convert';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/constant/value.dart'; 10 import 'package:analyzer/dart/constant/value.dart';
(...skipping 3588 matching lines...) Expand 10 before | Expand all | Expand 10 after
3599 3599
3600 test_initializer_executable_with_return_type_from_closure_local() { 3600 test_initializer_executable_with_return_type_from_closure_local() {
3601 checkLibrary(''' 3601 checkLibrary('''
3602 void f() { 3602 void f() {
3603 int u = 0; 3603 int u = 0;
3604 var v = () => 0; 3604 var v = () => 0;
3605 } 3605 }
3606 '''); 3606 ''');
3607 } 3607 }
3608 3608
3609 test_instantiateToBounds_boundRefersToEarlierTypeArgument() {
3610 checkLibrary('''
3611 class C<S extends num, T extends C<S, T>> {}
3612 C c;
3613 ''');
3614 }
3615
3616 test_instantiateToBounds_boundRefersToItself() {
3617 checkLibrary('''
3618 class C<T extends C<T>> {}
3619 C c;
3620 ''');
3621 }
3622
3623 test_instantiateToBounds_boundRefersToLaterTypeArgument() {
3624 checkLibrary('''
3625 class C<T extends C<T, U>, U extends num> {}
3626 C c;
3627 ''');
3628 }
3629
3630 test_instantiateToBounds_simple() {
3631 checkLibrary('''
3632 class C<T extends num> {}
3633 C c;
3634 ''');
3635 }
3636
3609 test_library() { 3637 test_library() {
3610 checkLibrary(''); 3638 checkLibrary('');
3611 } 3639 }
3612 3640
3613 test_library_documented() { 3641 test_library_documented() {
3614 checkLibrary(''' 3642 checkLibrary('''
3615 // Extra comment so doc comment offset != 0 3643 // Extra comment so doc comment offset != 0
3616 /** 3644 /**
3617 * Docs 3645 * Docs
3618 */ 3646 */
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
4639 fail('Unexpectedly tried to get unlinked summary for $uri'); 4667 fail('Unexpectedly tried to get unlinked summary for $uri');
4640 } 4668 }
4641 return serializedUnit; 4669 return serializedUnit;
4642 } 4670 }
4643 4671
4644 @override 4672 @override
4645 bool hasLibrarySummary(String uri) { 4673 bool hasLibrarySummary(String uri) {
4646 return true; 4674 return true;
4647 } 4675 }
4648 } 4676 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_strong_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698