You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse and build dot shorthand invocations that are constant.
Added a new listener to handle and store the const-ness. It didn't feel right re-using any of the other `beginConstPattern` methods.
Added an error message if invoking a non-const constructor where we expected a const constructor.
Bug: #59758
Change-Id: I8551e3b8f71e89a69d090510bb64694d5e09247d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414660
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Kallen Tu <[email protected]>
Copy file name to clipboardExpand all lines: pkg/front_end/testcases/constructor_tearoffs/issue46133.dart.strong.expect
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@ library;
2
2
//
3
3
// Problems in library:
4
4
//
5
-
// pkg/front_end/testcases/constructor_tearoffs/issue46133.dart:7:18: Error: Expected an identifier, but got '.'.
6
-
// Try inserting an identifier before '.'.
5
+
// pkg/front_end/testcases/constructor_tearoffs/issue46133.dart:7:18: Error: This requires the experimental 'dot-shorthands' language feature to be enabled.
6
+
// Try passing the '--enable-experiment=dot-shorthands' command line option.
0 commit comments