Files
swift-mirror/validation-test/IDE/crashers_fixed/subexpr-literal-in-sequence-expr.swift
Ben Langmuir 50cc79c7f2 Fix crash code-completing after 1 + [0]
A literal in a sub-expression of the right-most expression in a sequence
could accidentally still have an error-type when going through CSApply.

rdar://problem/23488528
2015-11-16 11:35:13 -08:00

12 lines
370 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | FileCheck %s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s | FileCheck %s
func test1() {
1 + [0]#^A^#
}
func test2() {
"" + [""]#^B^#
}
// Sanity check results.
// CHECK: Decl[InfixOperatorFunction]/OtherModule[Swift]: ==