mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Very roughly this increases the total coverage of SILGen tests with ownership enabled to ~20%. rdar://33358110
18 lines
425 B
Swift
18 lines
425 B
Swift
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -o /dev/null %s
|
|
|
|
// <rdar://22000564> Crash on Subscript taking a tuple argument list
|
|
class r22000564 {
|
|
subscript (position: (Int, Int)) -> Int {
|
|
get { return 32 }
|
|
set {}
|
|
}
|
|
subscript(native native: Int) -> Int {
|
|
get { return native }
|
|
set {}
|
|
}
|
|
subscript (position position: (Int, Int)) -> Int {
|
|
get { return 32 }
|
|
set {}
|
|
}
|
|
}
|