mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
479 B
Swift
10 lines
479 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -typecheck -verify -show-diagnostics-after-fatal
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_func.swift -module-name new_module
|
|
// RUN: %target-swift-frontend %s -typecheck -I %t
|
|
|
|
// These errors should happen before we've built the module to import.
|
|
import new_module // expected-error{{no such module 'new_module'}}
|
|
|
|
new_module.getZero() // expected-error {{cannot find 'new_module' in scope}}
|