mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
395 B
Swift
10 lines
395 B
Swift
// RUN: %empty-directory(%t)
|
|
//
|
|
// RUN: echo "public var dummyVar = Int()" | %target-swift-frontend -module-name DummyModule -emit-module -o %t -
|
|
// RUN: %target-swift-frontend -typecheck -verify -I %t %s
|
|
|
|
#if canImport(DummyModule)
|
|
print(DummyModule.dummyVar) // expected-error {{cannot find 'DummyModule' in scope}}
|
|
print(dummyVar) // expected-error {{cannot find 'dummyVar' in scope}}
|
|
#endif
|