sdk
sdk copied to clipboard
[analysis server] Methods with generic type are unable to resolve arguments
A | C |
---|---|
![]() |
![]() |
[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [版本 10.0.22000.795], locale zh-CN)
• Flutter version 3.0.5 at X:\SDK\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16 -0700
• Engine revision e85ea0e79c
• Dart version 2.17.6
• DevTools version 2.12.2
[√] IntelliJ IDEA Ultimate Edition (version 2022.2)
• IntelliJ at X:\IDEs\apps\IDEA-U\ch-0\222.3345.118
• Flutter plugin version 69.0.5
• Dart plugin version 222.3345.108
Previously we have #45972, but now the inspection is more broken.
/cc @scheglov
This feature actually touches quite a few places in the analyzer, and how we resolve generic invocations, with quite large historical baggage, so cannot be done quickly. I don't have time to work on it. But anyone interesting is welcome to do it.
Knocking down the priority to P2 (might be P3), as I don't think this is affecting a lot of users.
I don't think this is affecting a lot of users.
@srawlins The inspection might be, but other linter rules applying to the method cannot take effect. For example, avoid_redundant_argument_values
is useless here.