-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[vm] Implement function canonicalization corner cases #46487
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
I have approved VM failures on this issue. language/generic_methods/explicit_instantiated_tearoff_test: https://dart-ci.appspot.com/log/vm-kernel-precomp-nnbd-mac-release-arm64/dartkp-strong-mac-release-arm64/2/language/generic_methods/explicit_instantiated_tearoff_test language/closure/identity_equality_tearoff_test: |
Thanks, @dcharkes! Checking Regarding |
I believe this changed is gated on some further discussion, see here. |
There could be multiple instances of implicit static closures due to instantiations at run time: void foo<T>(T x) {} void bar<T>() { void Function(T) myfoo1 = foo; void Function(T) myfoo2 = foo; print(myfoo1 == myfoo2); } This change fixes equality to handle this case. TEST=language/generic_methods/explicit_instantiated_tearoff_test TEST=language/constructor/tear_off_test Issue #46231 Issue #46487 Change-Id: I485acc5444d19860ef4d8ebeec2e540fe57776d6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208981 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
Both |
This is the VM specific issue for #46485, which has the details.
The text was updated successfully, but these errors were encountered: