mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
by changing buildSubscriptIndexReference to work solely in terms of the parameter pattern of the subscript, instead of trying to walk the index type in parallel to extract parameter labels.
18 lines
403 B
Swift
18 lines
403 B
Swift
// RUN: %target-swift-frontend -emit-silgen -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 {}
|
|
}
|
|
}
|