Commits
Dave Zarzycki committed 8a56780ab8e
Subscription should implicitly tuple the key/index
This now works:
struct no_index {
subscript () -> Int { return 42 }
func test() -> Int { return this[] }
}
struct tuple_index {
subscript (x : Int, y : Int) -> (Int, Int) { return (x, y) }
func test() -> (Int, Int) { return this[123, 456] }
func test2() -> (Int, Int) { return this[y = 123, x = 456] }
}
Swift SVN r3965