-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Analysis Server crash at ce1dc866207c - The getter 'enclosingElement' was called on null - using fixed generic support #33403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @stereotype441 – trying out your fix for generic function types... |
Reproducing with the original example from - #33159 class Config {
final int value;
Config(this.value);
}
Config fromJson(Map json) =>
checkMethod(json, (check) => new Config(check('value', (v) => v as int)));
typedef _CheckedConvert = S Function<S>(String key, _CastFunction<S>);
typedef _CastFunction<R> = R Function(Object);
T checkMethod<T>(
Map map,
T constructor(_CheckedConvert converter),
) {
Q _checkedConvert<Q>(String key, _CastFunction<Q> castFunc) {
return castFunc(map[key]);
}
return constructor(_checkedConvert);
}
|
Was hoping 9179db8 fixed this, but sadly no. Tried the SDK at 385cde3 and still got
|
Friendly reminder – if anyone is bored. 😁 |
Just encountered a similar error with the following code:
Output of
Error message:
|
Closing as outdated. Haven't seen it in a long time! |
Analyzer Feedback from IntelliJ
Version information
ce1dc86
IDEA IU-181.5087.20
2.0.0-edge.ce1dc866207c94f5fbd2f1d453b55314fd2ad369
IU-181.5087.20, JRE 1.8.0_152-release-1136-b39x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.4 unknown, screens 3840x2160
Exception
The text was updated successfully, but these errors were encountered: