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

Unified Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2676713002: Fix for 'The getter 'isDynamic' was called on null' because of dartbug.com/28515 (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/declaration_resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 469fda26e0c260163bc26cdcdfca174604000d32..dded5f2944cddbc0743fe19232a66986e2c65a86 100644
--- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
@@ -862,6 +862,20 @@ main() {
expect(unitA.context.getContents(sourceB).data, 'var v = 2;');
}
+ test_getResult_functionTypeFormalParameter_withTypeParameter() async {
+ // This was code crashing because of incomplete implementation.
+ // Consider (re)moving after fixing dartbug.com/28515
+ addTestFile(r'''
+class A {
+ int foo( bar<T extends B>() ) {}
+}
+class B {}
+''');
+
+ AnalysisResult result = await driver.getResult(testFile);
+ expect(result.path, testFile);
+ }
+
test_getResult_inferTypes_finalField() async {
addTestFile(
r'''
« no previous file with comments | « pkg/analyzer/lib/src/generated/declaration_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698