-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Analyzer: More crashes on new "Function" syntax #31107
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
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Comments
As a side note, it's generally recommended to not write types on initializing formals. They automatically inherit the type of the field they initialize, even in Dart 1. |
Sure, this was a mistake on my part, but the analyzer still shouldn't crash :) |
Closed
Also crashes with Dart
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
legacy-area-analyzer
Use area-devexp instead.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Analyzer Feedback from IntelliJ
Version information
IDEA IU-171.4694.70
2.0.0-dev.3.0
IU-171.4694.70, JRE 1.8.0_112-release-736-b21x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.12.6 unknown, screens 3440x1440, 1080x1920
I have isolated the crash to this pattern:
... or specifically, the initializing formals (
this.*
).I can temporarily fix it by manually initializing the fields:
The text was updated successfully, but these errors were encountered: