mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
304 B
Swift
10 lines
304 B
Swift
// Ensure that we don't crash due to resolving an extension in a non-primary
|
|
// file.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -index-store-path %t/idx -o %t/file.o -typecheck -primary-file %s %S/Inputs/cross-file-extension-crash-other.swift -verify
|
|
|
|
extension X {
|
|
func foo() { }
|
|
}
|