mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Instead of only honoring the last occurrence of -import-module, the frontend now honors all occurrences of -import-module, making all of the modules specified on the command line implicitly visible. This fixes <rdar://problem/20422696>. Swift SVN r27299
12 lines
741 B
Swift
12 lines
741 B
Swift
// RUN: %target-swift-frontend -parse %s -enable-source-import -I %S/Inputs -sdk "" -verify
|
|
// RUN: %target-swift-frontend -parse %s -enable-source-import -I %S/Inputs -sdk "" -import-module abcde -import-module aeiou
|
|
|
|
// RUN: not %target-swift-frontend -parse %s -enable-source-import -I %S/Inputs -sdk "" -import-module abcde -import-module aeiou -import-module 3333 2>&1 | FileCheck -check-prefix=NON-IDENT %s
|
|
|
|
// NON-IDENT: error: module name "3333" is not a valid identifier
|
|
|
|
var c: C? // expected-error {{use of undeclared type 'C'}}
|
|
var u: U? // expected-error {{use of undeclared type 'U'}}
|
|
var qA1: abcde.A? // expected-error {{use of undeclared type 'abcde'}}
|
|
var qA2: aeiou.A? // expected-error {{use of undeclared type 'aeiou'}}
|