blob: fde1daacc162697387417bd73d98789618463c83 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -swift-version 4
private typealias PrivateAlias = Int
// expected-note@-1 {{type alias 'PrivateAlias' is not '@usableFromInline' or public}}
internal typealias InternalAlias = Int
// expected-note@-1 {{type alias 'InternalAlias' is not '@usableFromInline' or public}}
@usableFromInline typealias UsableFromInlineAlias = Int
public typealias PublicAlias = Int
@inlinable public func f() {
_ = PrivateAlias.self
// expected-warning@-1 {{type alias 'PrivateAlias' is private and should not be referenced from an '@inlinable' function}}
_ = InternalAlias.self
// expected-warning@-1 {{type alias 'InternalAlias' is internal and should not be referenced from an '@inlinable' function}}
_ = UsableFromInlineAlias.self
_ = PublicAlias.self
}