-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
dart-archive/linter
#2919Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-new-language-featuretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
With constructor tear-offs, there is a "new" way to define the unnamed constructor for a class.
class A {
A.new();
}It's a little surprising that this is equivalent to the shorter version:
class A {
A();
}We might consider a lint to discourage people from using this new syntax.
See also: dart-lang/site-www#3525
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-new-language-featuretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug