-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[analyzer] Rework
InterfaceTypeImpl
constructor to call NullTypeImpl
Previously, the `InterfaceTypeImpl._` constructor threw an exception if an interface type was being constructed for the type `Null` (because the `NullTypeImpl` constructor should be used instead). This was silly; as long as we're going to check, we might as well put the check in the `InterfaceTypeImpl` factory constructor, and have it simply construct the appropriate subtype. This is simpler, and should be much lower risk, since we no longer have a code path that has to throw an exception. Change-Id: Ie3ed216b285e371866a6a35ccccdf997b8a1f95e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396620 Reviewed-by: Brian Wilkerson <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]> Commit-Queue: Paul Berry <[email protected]>
- Loading branch information
1 parent
f6e4b3e
commit 723c856
Showing
3 changed files
with
12 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters