Files
swift-mirror/test/Interop/Cxx/modules/Inputs/namespace-extension-lib.swift
Alex Lorenz 045fcf3ff5 [interop] Prohibit use of C++ APIs in public interfaces that opt-in into library evolution
The CxxStdlib overlay now has to be built without library evolution enabled.
2023-04-13 10:48:09 -07:00

24 lines
374 B
Swift

import Namespaces
#if RESILIENT
extension Namespace.SimpleTypealias {
public static func test() -> Int { 42 }
}
#else
extension Namespace.Parent {
public static func test() -> Int { 42 }
}
extension Namespace.Parent.Child {
public static func test() -> Int { 52 }
}
extension Namespace.NestedNamespace.NestedStruct {
public func test() -> Int { 62 }
}
#endif