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

Unified Diff: pkg/analyzer/lib/src/error/codes.dart

Issue 2641213002: Issue 28100. In strong mode verify that TypeParameter bound has required type arguments. (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
Index: pkg/analyzer/lib/src/error/codes.dart
diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart
index 7787e0ad3910985458469a9605b4fa2f8557f01e..42d9aeceeacfdb55ca200fb3e20755a517970d98 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -4898,6 +4898,12 @@ class StrongModeCode extends ErrorCode {
"Missing type arguments for calling generic function type '{0}'.",
_implicitDynamicCorrection);
+ static const StrongModeCode NOT_INSTANTIATED_BOUND = const StrongModeCode(
+ ErrorType.COMPILE_TIME_ERROR,
+ 'NOT_INSTANTIATED_BOUND',
+ "Type parameter bound types must be instantiated.",
+ "Try adding type arguments.");
+
static const StrongModeCode UNSAFE_BLOCK_CLOSURE_INFERENCE = const StrongModeCode(
ErrorType.STATIC_WARNING,
'UNSAFE_BLOCK_CLOSURE_INFERENCE',

Powered by Google App Engine
This is Rietveld 408576698