Skip to content
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

Closed
peter-ahe-google opened this issue Nov 3, 2011 · 2 comments
Closed

Incorrectly flags concrete type arguments as non-const. #322

peter-ahe-google opened this issue Nov 3, 2011 · 2 comments
Labels
closed-not-planned Closed as we don't intend to take action on the reported issue web-dart2js

Comments

@peter-ahe-google
Copy link
Contributor

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

@anders-sandholm
Copy link
Contributor

Removed Area-Frog label.
Added Area-Dart2JS, FromAreaFrog labels.

@kasperl
Copy link

kasperl commented Jun 8, 2012

Added WontFix label.

@kevmoo 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
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
closed-not-planned Closed as we don't intend to take action on the reported issue web-dart2js
Projects
None yet
Development

No branches or pull requests

4 participants