-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onanalyzer-apiIssues that impact the public API of the analyzer packageIssues that impact the public API of the analyzer packagearea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Follow up on dart-archive/linter#2530
On the following example functionExpression.staticParameterElement.library
is null
for the generic case ff
but not for f
. Both should be set with a non-null variable.
class MyMap<K, V> {
void f(void Function(int a) p) {}
void ff(void Function(K a) p) {}
}
m() {
MyMap().f((int? a) {}); // staticParameterElement.library is correctly set
MyMap().ff((Object? a) {}); // staticParameterElement.library is null
}
(with analyzer-1.5.0)
/cc @scheglov
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onanalyzer-apiIssues that impact the public API of the analyzer packageIssues that impact the public API of the analyzer packagearea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)