-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
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.
Description
The following code triggers the prefer_const_constructors linter rule on the initial assignment of foo:
///
class Foo {
///
const Foo();
}
///
class Bar {
///
Foo foo = Foo(); // Triggers prefer_const_constructors
///
set changeFoo(Foo newFoo) {
foo = newFoo;
}
}
As I thought new/const was optional and inferred, this appears to be a false positive.
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.