-
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
Implement non-function type alias support in web debuggers #44963
Comments
Yeah I think we just need to validate that it works and if it doesn't, likely make edits to the logic here. |
@grouma do we have a plan for validating this? |
I think making use of the feature in a |
Maybe it is worth also adding a couple tests to cover #44925 as well? |
Wouldn't hurt. We'll need to know the SDK version that contains these features. |
Ping me when a dev build is available. It's much easier to validate that way. |
It seems we won't have a dev build this week due to Easter holiday in Europe , can we validate with the CL? |
@grouma this has landed, can you please test on master (I don't expect we will have a dev build before the branch cut window opens). |
I downloaded the latest SDK: I updated the minimum SDK for my example project and included this: typedef JsonMap = Map<String, dynamic>; There are no errors with analysis, however I'm having issues building:
cc @jakemac53 Without being able to build it's impossible for me to validate. |
@grouma This is not in any dev build and I don't think it will be until AAR is back from vacation which will be too late. I think you need to test this out on master. |
I'll build from master locally but I'm confused as to why this isn't in the latest |
I don't think this is an analyzer issue. There are no analysis errors. (There were some until I upgraded the SDK and updated the pubspec). I think this may be a |
FYI, I'm waiting for the flag switch to be rolled into google3, and will publish |
@grouma I had to ensure that the language version is name: dart_repro
environment:
sdk: ">=2.13.0-0 <3.0.0"
dev_dependencies:
build_runner: any
build_web_compilers: any
dependency_overrides:
analyzer:
path: ../dart-sdk/sdk/pkg/analyzer
front_end:
path: ../dart-sdk/sdk/pkg/front_end
_fe_analyzer_shared:
path: ../dart-sdk/sdk/pkg/_fe_analyzer_shared
package_config: 2.0.0 |
Thanks @natebosch, I was able to get it working. Debugging doesn't blow up so that's good. I'm not sure what the intended behavior is here though. The displayed types are desugared. Look at the variables and console in the screenshot below. I suppose that's the desired behavior? |
Expanding the types seems like fine behavior to me. |
This issue tracks support of the non-function type alias feature. See the enclosing meta-issue for details.
cc @franklinyow @sigmundch @mit-mit
The text was updated successfully, but these errors were encountered: