mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
31 lines
691 B
Swift
31 lines
691 B
Swift
@_exported import indirects
|
|
|
|
public struct StructFromDirect {
|
|
public func method() {}
|
|
public var property: Int {
|
|
get { return 0 }
|
|
set {}
|
|
}
|
|
public subscript(index: Int) -> Int {
|
|
get { return 0 }
|
|
set {}
|
|
}
|
|
}
|
|
public typealias AliasFromDirect = StructFromDirect
|
|
public typealias GenericAliasFromDirect<T> = (StructFromDirect, T)
|
|
|
|
public func globalFunctionFromDirect() {}
|
|
public var globalVariableFromDirect = 0
|
|
|
|
extension StructFromIndirect {
|
|
public func extensionMethodFromDirect() {}
|
|
public var extensionPropertyFromDirect: Int {
|
|
get { return 0 }
|
|
set {}
|
|
}
|
|
public subscript(extensionSubscript index: Int) -> Int {
|
|
get { return 0 }
|
|
set {}
|
|
}
|
|
}
|