Files
swift-mirror/validation-test/compiler_crashers_fixed/26296-duplicate-subscript-declaration.swift
practicalswift fe2bc2421e Sync with https://github.com/practicalswift/swift-compiler-crashes
Add 5 compiler crashes (+ 1 fixed crash).
2015-12-11 21:35:06 +01:00

16 lines
243 B
Swift

// RUN: not %target-swift-frontend %s -parse
// rdar://22007370
class Foo {
subscript(key: String) -> String {
get { a }
set { b }
}
subscript(key: String) -> String {
get { a }
set { b }
}
}