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

Unified Diff: pkg/analyzer/test/src/summary/linker_test.dart

Issue 2779993002: Store literal values and invocations arguments only for constants and untyped literals. (Closed)
Patch Set: Update IDL documentation. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/summary/linker_test.dart
diff --git a/pkg/analyzer/test/src/summary/linker_test.dart b/pkg/analyzer/test/src/summary/linker_test.dart
index 774cd8aab55778ead9ab7ad6d07930d7f2ee3d26..e67e88e4e8577c2fdc927ffec6ed932d59cc34ce 100644
--- a/pkg/analyzer/test/src/summary/linker_test.dart
+++ b/pkg/analyzer/test/src/summary/linker_test.dart
@@ -516,27 +516,6 @@ class D {
expect(classD.fields[0].inferredType.toString(), 'dynamic');
}
- void test_inferredTypeFromOutsideBuildUnit_methodParamType_viaGeneric() {
- var bundle = createPackageBundle(
- '''
-class B {
- T f<T>(T t) => t;
-}
-class C extends B {
- f<T>(t) => t; // Inferred param type: T
-}
-''',
- path: '/a.dart');
- addBundle('/a.ds', bundle);
- createLinker('''
-import 'a.dart';
-var x = new C().f(0); // Inferred type: int
-''');
- LibraryElementForLink library = linker.getLibrary(linkerInputs.testDartUri);
- expect(_getVariable(library.getContainedName('x')).inferredType.toString(),
- 'int');
- }
-
void test_inferredTypeFromOutsideBuildUnit_methodParamType_viaInheritance() {
var bundle = createPackageBundle(
'''

Powered by Google App Engine
This is Rietveld 408576698