Ignore unresolved imports in @_implementationOnly consistency checking (#26255)

Unresolved imports all have the "same" ModuleDecl: nullptr. But that's
not really an inconsistency, and even if there *is* a true
inconsistency among unresolved imports, it can be dealt with when the
developer fixes their search paths. (Or the imports. Whichever is
wrong.)

rdar://problem/52943397
This commit is contained in:
Jordan Rose
2019-07-22 09:14:26 -07:00
committed by GitHub
parent 6da591c9b2
commit d71790b706
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
// Just check that we don't crash (rdar://problem/52943397)
// RUN: not %target-swift-frontend -typecheck %s
// RUN: not %target-swift-frontend -typecheck -show-diagnostics-after-fatal %s
@_implementationOnly import Swift
import ThisModuleDoesNotExist
@_implementationOnly import ThisModuleDoesNotExist
@_implementationOnly import NeitherDoesThisOne