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
VM: importing dart:core with a prefix hides dynamic #12478
Comments
@mhausner @rmacnak-google This appears to still happen, but is it still incorrect? Is this issue stale? |
I believe this issue is still valid. tests/language/dynamic_prefix_core_test.dart isn't marked as failing for kernel though, so it will probably end up fixed by the new front end. |
This is still valid, but will be obsolete with the new front-end. I don't see a reason to fix this for the current front-end. As @rmacnak-google observes, this works in the new Front-end, so closing the issue. |
This is closed, but in case anyone ever takes a look here: Please note that |
Bug: #12478 Bug: #40497 Bug: #40510 Change-Id: I841d7e239b8235555ec26fbcb74ca41b5de60f58 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134806 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
…embedding API for dynamic, void and Never. Fix crash when create type errors involving Never. Bug: #12478 Bug: #40176 Change-Id: I8cff7042850717d02da36ad935cf0a49ace80c3d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134886 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
import 'dart:core' as core;
main(){
// Should still be available because it is not a member of dart:core.
Expect.isTrue(dynamic is Type);
Expect.throws(() => mycore.dynamic is Type,
(e) => e is NoSuchMethodError,
'dynamic is not a member of dart:core');
}
The text was updated successfully, but these errors were encountered: