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

Unified Diff: pkg/compiler/lib/src/diagnostics/messages.dart

Issue 2476423005: Enable syntax-only support for generic functions by default. (Closed)
Patch Set: Created 4 years, 1 month 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/compiler/lib/src/diagnostics/messages.dart
diff --git a/pkg/compiler/lib/src/diagnostics/messages.dart b/pkg/compiler/lib/src/diagnostics/messages.dart
index a5e40038e8c72379e1bf11898f6427b058c34623..a65c6ef83a9976f467c5ab8bee0927a76c02332a 100644
--- a/pkg/compiler/lib/src/diagnostics/messages.dart
+++ b/pkg/compiler/lib/src/diagnostics/messages.dart
@@ -1221,7 +1221,6 @@ void main() => new C().m(null);
MessageKind.TYPE_VARIABLE_FROM_METHOD_NOT_REIFIED: const MessageTemplate(
MessageKind.TYPE_VARIABLE_FROM_METHOD_NOT_REIFIED,
"Method type variables do not have a runtime value.",
- options: const ["--generic-method-syntax"],
howToFix: "Try using the upper bound of the type variable, "
"or refactor the code to avoid needing this runtime value.",
examples: const [
@@ -1243,7 +1242,6 @@ main() => f<int>(42);
const MessageTemplate(
MessageKind.TYPE_VARIABLE_FROM_METHOD_CONSIDERED_DYNAMIC,
"Method type variables are treated as `dynamic` in `as` expressions.",
- options: const ["--generic-method-syntax"],
howToFix: "Try using the upper bound of the type variable, or check "
"that the blind success of the test does not introduce bugs.",
examples: const [

Powered by Google App Engine
This is Rietveld 408576698