-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Parser crash on bad function type syntax #35035
Comments
Proposed fix https://dart-review.googlesource.com/c/sdk/+/82984 |
Fixes #35035 Change-Id: I29fe0d792998c43f49877d97b61b3afc16c43cef Reviewed-on: https://dart-review.googlesource.com/c/82984 Commit-Queue: Aske Simon Christensen <askesc@google.com> Reviewed-by: Aske Simon Christensen <askesc@google.com> Auto-Submit: Peter von der Ahé <ahe@google.com>
Version stable 1.17 occurring this problem while debugging `[ +9 ms] executing: [/Users/reinaldo.moreira/sdk-flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3) the Dart compiler exited unexpectedly. #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3) |
This is a different situation from the original issue. The stack trace seems to indicate something around a constructor call. Can you provide some code that reproduces the crash? |
This (reasonable) attempt at writing a function type taking a named parameter:
crashes the parser with this output:
The text was updated successfully, but these errors were encountered: