Files
swift-mirror/test/SIL/Serialization/Inputs/def_generic.swift
Slava Pestov b137b08822 Sema: Type aliases referenced from @inlinable functions must be public or @usableFromInline
This is a source breaking change, so emit a warning in Swift 4 mode,
and an error in Swift 5 mode.
2018-06-15 14:16:05 -07:00

15 lines
267 B
Swift

@_fixed_layout
public class A<T> {
@usableFromInline typealias Element = T
@inlinable func convertFromArrayLiteral(_ elements: Element...) -> A {
return A()
}
@inlinable init() {}
@inlinable public subscript<U>(value: T) -> U? {
return nil
}
}