Files
swift-mirror/test/NameBinding/Inputs/reference-dependencies-helper.swift
Jordan Rose ce995a8f67 Dependencies: conformances on private decls are themselves private.
This does reveal an overly conservative case: lookup in the inheritance
clause of extensions is always considered a non-private lookup, even if
it's extending a private type, because we haven't yet resolved what it's
extending. Won't lead to incorrect behavior, just more compilation than
is strictly necessary.

Swift SVN r23481
2014-11-20 20:58:15 +00:00

72 lines
1.9 KiB
Swift

class ClassFromOtherFile {}
// This Int16 is specifically checked for in the primary file.
typealias AliasFromOtherFile = Int16
func funcFromOtherFile() {}
struct OtherFileOuterType {
struct InnerType {
static let sharedConstant = 42
}
}
struct OtherFileSecretTypeWrapper {
struct SecretType {
static let constant = 42
}
}
typealias OtherFileAliasForSecret = OtherFileSecretTypeWrapper.SecretType
prefix operator *** {}
typealias OtherFileAliasForFloatLiteralConvertible = FloatLiteralConvertible
protocol OtherFileProto {}
struct OtherFileProtoImplementor : OtherFileProto {}
func otherFileGetImpl() -> OtherFileProtoImplementor {}
func otherFileUse(_: OtherFileProto) {}
protocol OtherFileProto2 {}
struct OtherFileProtoImplementor2 : OtherFileProto2 {}
func otherFileGetImpl2() -> OtherFileProtoImplementor2 {}
func otherFileUseGeneric<T: OtherFileProto2>(_: T) {}
func topLevel1() -> Int { return 2 }
func topLevel2() -> Int { return 2 }
func topLevel3() -> Int { return 2 }
func topLevel4() -> Int { return 2 }
func topLevel5() -> Int { return 2 }
func topLevel6() -> Int { return 2 }
func topLevel7() -> Int { return 2 }
func topLevel8() -> Int { return 2 }
func topLevel9() -> Int { return 2 }
typealias TopLevelTy1 = Int
typealias TopLevelTy2 = Int
typealias TopLevelTy3 = Int
protocol TopLevelProto1 {}
protocol TopLevelProto2 {}
protocol TopLevelProto3 {}
func privateTopLevel1() -> Int { return 2 }
func privateTopLevel2() -> Int { return 2 }
func privateTopLevel3() -> Int { return 2 }
func privateTopLevel4() -> Int { return 2 }
func privateTopLevel5() -> Int { return 2 }
func privateTopLevel6() -> Int { return 2 }
func privateTopLevel7() -> Int { return 2 }
func privateTopLevel8() -> Int { return 2 }
func privateTopLevel9() -> Int { return 2 }
typealias PrivateTopLevelTy1 = Int
typealias PrivateTopLevelTy2 = Int
typealias PrivateTopLevelTy3 = Int
protocol PrivateProto1 {}
protocol PrivateProto2 {}
protocol PrivateProto3 {}