Skip to content

Commit 2a8ce5b

Browse files
committed
Clarify error message for instantiating abstract classes
Fixes #38695 Consistent with terminology in https://dart.dev/guides/language/language-tour#abstract-classes Closes #38706 #38706 GitOrigin-RevId: 37eccff Change-Id: Ia9434b8b7957f1009fe1d987cbcf5bf878ba540b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119880 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
1 parent 3712ed2 commit 2a8ce5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/lib/src/error/codes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6439,7 +6439,7 @@ class StaticWarningCode extends AnalyzerErrorCode {
64396439
*/
64406440
static const StaticWarningCode NEW_WITH_ABSTRACT_CLASS =
64416441
const StaticWarningCode('NEW_WITH_ABSTRACT_CLASS',
6442-
"Abstract classes can't be created with a 'new' expression.",
6442+
"Abstract classes can't be instantiated.",
64436443
correction: "Try creating an instance of a subtype.");
64446444

64456445
/**

0 commit comments

Comments
 (0)