Files
swift-mirror/validation-test/IDE/crashers_fixed/rdar50666427.swift
Argyrios Kyrtzidis bbdada475b [Parse] Try to preserve the invariant that anything that contains KeyPathDotExpr must be wrapped in KeyPathExpr
Even in the presence of invalid code. Fixes typechecker crash in rdar://50666427
2020-02-20 15:07:00 -08:00

10 lines
194 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
struct SD {
var array: [Int] = []
}
func test(sd: SD) {
_ = sd[\.array[#^COMPLETE^#]]
}