mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] Implicitly import Cxx module
This lifts the requirement for the user to explicitly add `import Cxx` in Swift code that relies on protocols from the `Cxx` module, such as `CxxSequence`.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
// RUN: %target-swift-ide-test -print-module -module-to-print=CustomSequence -source-filename=x -I %S/Inputs -enable-experimental-cxx-interop -module-cache-path %t | %FileCheck %s
|
||||
|
||||
// CHECK: import Cxx
|
||||
|
||||
// CHECK: struct ConstIterator : UnsafeCxxInputIterator {
|
||||
// CHECK: var pointee: Int32 { get }
|
||||
// CHECK: func successor() -> ConstIterator
|
||||
|
||||
Reference in New Issue
Block a user