-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrectly flags concrete type arguments as non-const. #322
Labels
Comments
Removed Area-Frog label. |
Added WontFix label. |
kevmoo
added
closed-not-planned
Closed as we don't intend to take action on the reported issue
and removed
resolution-wont_fix
labels
Mar 1, 2016
This was referenced Oct 29, 2020
copybara-service bot
pushed a commit
that referenced
this issue
Nov 9, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`. collection (https://github.com/dart-lang/collection/compare/e8d7e92..f309148): f309148 2023-11-08 Kevin Moore Latest lints, require Dart 3.1, use mixin (#322) fixnum (https://github.com/dart-lang/fixnum/compare/3279f5d..6b0888c): 6b0888c 2023-11-08 Kevin Moore Update to latest lints and fix (#122) markdown (https://github.com/dart-lang/markdown/compare/efb73b3..3774ad0): 3774ad0 2023-11-07 Kevin Moore Fix formatting for latest Dart dev SDK (#565) da11847 2023-11-07 Mosc Fix beginning of line detection in `AutolinkExtensionSyntax` (#555) tools (https://github.com/dart-lang/tools/compare/d898ad1..dd46ef2): dd46ef2 2023-11-09 Elias Yishak Enum + event constructor added for `flutterCommandResult` (#199) Change-Id: I8aa33f52c8afd50b60b225ad890f3e82945bcc50 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335303 Reviewed-by: Konstantin Shcheglov <[email protected]> Auto-Submit: Devon Carew <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
class Foo {
final Bar<Foo> bar = const Bar<Foo>();
}
class Bar<T extends Foo> {
const Bar();
}
main() {
print(new Foo());
}
generic.dart:2:24: error: non constant field must be initialized in constructor
final Bar<Foo> bar = const Bar<Foo>();
^^^^^^^^^^^^^^^^
compilation failed with 1 errors
The text was updated successfully, but these errors were encountered: