Analyzer comment indicates a factory constructor can have a return type #60563
Labels
area-dart-model
For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.
type-documentation
A request to add or improve documentation
The comment on
ConstructorDeclaration.redirectedConstructor
(public API) says:I'm not sure if that was ever true, but it isn't true now. (It'd be a cool feature.)
This code:
results in several errors, among them:
And this code:
results in one error:
Looking at the call sites of ConstructorDeclarationImpl, the value of
returnType
is always a SimpleIdentifier for the type name, in either a named or unnamed constructor.The text was updated successfully, but these errors were encountered: