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

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

Issue 2640143007: Issue 28100. Implement new strong mode instantiate to bound rules in analyzer. (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 42d9aeceeacfdb55ca200fb3e20755a517970d98..a87badd8901c623593a9bf8de8d6fc0c2e5e3f70 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -4904,6 +4904,13 @@ class StrongModeCode extends ErrorCode {
"Type parameter bound types must be instantiated.",
"Try adding type arguments.");
+ static const StrongModeCode UNABLE_INSTANTIATE_TO_BOUNDS =
+ const StrongModeCode(
+ ErrorType.COMPILE_TIME_ERROR,
+ 'UNABLE_INSTANTIATE_TO_BOUNDS',
+ "Unable to instantiate to bounds.",
Leaf 2017/01/20 20:31:52 Maybe "Type has no default bounds", "Try adding ex
scheglov 2017/01/21 02:11:23 Done.
+ "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