You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Augmentation libraries already support this, any with or implements are just appended to the originals (although there is a TODO to figure out if this is for sure the desired behavior).
We do need to consider some of the implications here - such as:
Which phase can you do this (almost certainly phase 1 only, since it affects types).
Does this have ordering implications/complications? You can't tell reliably for instance if the interface/mixin is already present in phase 1. Multiple macros may try to add the same mixins/interfaces etc, should macros be able to see the ones added by other macros already in the same phase?
Maybe we should only allow implements but not with? Ordering and duplication may not matter if we did that.
If ordering does matter, are we okay with the potential loss of parallelism in phase 1?
The text was updated successfully, but these errors were encountered:
There also needs to be some specification work to say that ordering matters in phase 1 so I will leave this open until that also gets sent out and lands.
the types phase.
Also seales the Code types hierarchy to block users from attempting to
create their own subclasses.
Bug: dart-lang/language#3211
Change-Id: I51ebdfdad6e1fba3c19ef91f25e238730e98e740
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/314821
Auto-Submit: Jake Macdonald <jakemac@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Jake Macdonald <jakemac@google.com>
Augmentation libraries already support this, any
with
orimplements
are just appended to the originals (although there is a TODO to figure out if this is for sure the desired behavior).We do need to consider some of the implications here - such as:
implements
but notwith
? Ordering and duplication may not matter if we did that.The text was updated successfully, but these errors were encountered: