Index: pkg/analyzer/test/src/dart/analysis/driver_test.dart |
diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart |
index 800f4c5f8bc2ef36c8619d2906868c41bcfa5fe4..4f3b2afd6e9bd4786f969a30d4fa53e4f05c9490 100644 |
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart |
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart |
@@ -1428,6 +1428,20 @@ var V; |
await driver.getResult(testFile); |
} |
+ test_getResult_nameConflict_local_typeInference() async { |
+ String content = r''' |
+typedef F(); |
+var F; |
+F _ff() => null; |
+var f = _ff(); // the inference must fail |
+main() { |
+ f(); |
+} |
+'''; |
+ addTestFile(content); |
+ await driver.getResult(testFile); |
+ } |
+ |
test_getResult_notDartFile() async { |
var path = _p('/test/lib/test.txt'); |
provider.newFile(path, 'class A {}'); |