Index: pkg/analysis_server/lib/src/services/correction/util.dart |
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart |
index 82217a2d4d24ea9c19fa2ee91e855de36d1123f3..cbed44a227bcd1e53787c338cf2d96dc668acb90 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/util.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart |
@@ -1129,8 +1129,8 @@ class CorrectionUtils { |
parametersBuffer.write(')'); |
return getTypeSource(type.returnType, librariesToImport); |
} |
- // BottomType |
- if (type.isBottom) { |
+ // <Bottom>, Null |
+ if (type.isBottom || type.isDartCoreNull) { |
return 'dynamic'; |
} |
// prepare element |