-
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
diagnostic for dynamic?
#45165
Comments
@pq commented on Mar 2, 2021, 3:05 PM UTC: Or perhaps this should be an analyzer diagnostic? (Would anyone ever want to opt-out?) /fyi @srawlins @bwilkerson |
@srawlins commented on Mar 2, 2021, 3:21 PM UTC: @leafpetersen @munificent is |
@srawlins commented on Mar 2, 2021, 3:23 PM UTC: Currently the analyzer even allows dynamic dispatch on void f(dynamic? a) {
print(a + 2);
} |
@bwilkerson commented on Mar 2, 2021, 4:40 PM UTC: There's no difference between |
@leafpetersen commented on Mar 2, 2021, 9:06 PM UTC: Yeah, |
@srawlins commented on Mar 2, 2021, 9:08 PM UTC: Thanks for the responses! I agree that it should be Hinted then; |
Oof, so many email notifications. Please use "Transfer issue" when transfering an issue from one repo to another, not "Move issue." |
Actually, I'm going to submit a diagnostic for
I'm going to leave this alone for now. I don't see people writing
If that can be argued, then I think we should let this one be. :) |
Also update the generator: * Remove same unnecessary '?' * Update MemberType.name, TypeRef.ref to be non-nullable Bug: #45165 Change-Id: I438e9ce1e02faac9417a7d2d4ace143f2cf6feb3 TEST=Just the regular trybots. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/190722 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
@davidmorgan commented on Mar 2, 2021, 11:47 AM UTC:
I'm surprised to find that
dynamic?
is allowed and we even see a few uses in google3 ...Could we lint that you can always switch it to just
dynamic
? :)This issue was moved by pq from dart-lang/linter#2493.
The text was updated successfully, but these errors were encountered: