mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is a source breaking change, so emit a warning in Swift 4 mode, and an error in Swift 5 mode.
15 lines
267 B
Swift
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
|
|
}
|
|
}
|