Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar42639255.swift
Rintaro Ishizaki 7532da4e37 [ConstraintSystem] Remove any semantic expression in SanitizeExpr
Existence of semantic expr (`getSemanticExpr()`) prevents ASTWalker
walking into the *original* sub expressions which may cause
re-typechecking failure. For example,
`ConstraintGenerator::visitArrayExpr()` assumes we already visited its
elements, but that's not the case if the semantic expr exists.

rdar://problem/42639255
2018-08-13 20:36:07 +09:00

12 lines
228 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
class Foo {
fileprivate var deltaY: Float = 0
func foo() {
var values: [Any]?
values = [0, deltaY, -deltaY] #^A^#
}
}