False positive with the late
keyword when using const factory
constructor
#1763
Labels
enhanced-const
Requests or proposals about enhanced constant expressions
request
Requests to resolve a particular developer problem
Uh oh!
There was an error while loading. Please reload this page.
Consider the following code:
This code currently does not compile with "Can't have a late final field in a class with a const constructor.
Try removing the 'late' modifier, or don't declare 'const' constructors."
This error is caused by a
const factory
. But since this is a factory constructor, this should not have any impact.The text was updated successfully, but these errors were encountered: