-
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
dart2js crashes on nullable bools in checked mode #3146
Comments
Removed Area-Frog label. |
Removed OldAreaFrog label. |
When running the above, I get: ../lib/dart2js/lib/compiler/implementation/lib/js_helper.dart:412:17: Error: The compiler crashed when compiling this element. When compiling the above element, the compiler crashed. It is not The Dart team would greatly appreciate if you would take a moment to Please include the following information: * the name and version of your operating system, * the Dart SDK build number (build number could not be determined), and * the stack trace you see here. Internal error: NullPointerException : method: 'hashCode' Removed FromAreaFrog label. |
This comment was originally written by [email protected] Set owner to [email protected]. |
This comment was originally written by [email protected] This has been fixed on bleeding_edge. Added Fixed label. |
Changes: ``` > git log --format="%C(auto) %h %s" a817863..37d0592 37d05928 Don't ignore 'packages/' over the root-dir (#3162) 85e11718 Add in-memory cache to store version listings (#3163) 46f79d5b Use source.hasMultipleVersions to decide when to show version constraint. (#3159) 0e553a07 Warn against likely bad env-var name (#3146) 30580bee Migrate src/git to null-safety (#3158) ``` Change-Id: Ic04937ad0adbeb228770087dedb25ccfcc4f3206 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215202 Reviewed-by: Sarah Zakarias <[email protected]> Commit-Queue: Sigurd Meldgaard <[email protected]>
The following code throws an error when run with enable_type_checks and enable_asserts under frog:
bool foo(a) => a;
main() {
print(foo(null));
}
This is unexpected, since Dart allows null as a value of bool.
The text was updated successfully, but these errors were encountered: