mirror of
https://github.com/apple/swift.git
synced 2026-10-14 15:51:20 +02:00
We already filter out invalid ValueDecls, apply the same to ExtensionDecls to ensure we don't end up crashing when attempting to query the extended nominal when it couldn't be resolved.
5 lines
651 B
Swift
5 lines
651 B
Swift
// {"extraArgs":["-experimental-allow-module-with-compiler-errors","-cxx-interoperability-mode=default","-emit-clang-header-min-access","internal","-emit-clang-header-path","/dev/null"],"kind":"emit-sil","original":"c761e8c4","signature":"(anonymous namespace)::ModuleWriter::write()","signatureAssert":"Assertion failed: (Val && \"isa<> used on a null pointer\"), function doit","signatureNext":"printModuleContentsAsCxx"}
|
|
// RUN: not %target-swift-frontend -emit-sil -experimental-allow-module-with-compiler-errors -cxx-interoperability-mode=default -emit-clang-header-min-access internal -emit-clang-header-path /dev/null %s
|
|
extension <#type#> {
|
|
}
|