Files
swift-mirror/test/SILGen/crashers_silgen.swift
Chris Lattner f7252d2ea1 Fix <rdar://problem/22000564> Crash on Subscript taking a tuple argument list
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.
2015-12-22 22:15:06 -08:00

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 {}
}
}