mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:39:48 +00:00
Prevent npe when constructor cannot be resolved
Change-Id: I956b52f6ba3192f87ef2b1a723d8123ebe2bf14d Reviewed-on: https://dart-review.googlesource.com/63693 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
parent
d50fa68176
commit
3c5fe3c7e4
|
@ -415,7 +415,7 @@ class ResolutionApplier extends GeneralizingAstVisitor {
|
|||
node.staticType = type;
|
||||
|
||||
node.constructorName.staticElement = constructor;
|
||||
node.constructorName.type.type = constructor.returnType;
|
||||
node.constructorName.type.type = type;
|
||||
|
||||
typeIdentifier.staticType = type;
|
||||
classIdentifier.staticType = type;
|
||||
|
|
Loading…
Reference in a new issue