Files
swift-mirror/test/IDE/complete_optional_function.swift
Alex Hoppen a5a17aa955 [tests] Add a %batch-code-completion lit substitution
I could never remember the command to run batch code completion tests. Add a lit substitution for it.
2023-09-18 13:57:49 -07:00

7 lines
210 B
Swift

// RUN: %batch-code-completion
func foo(_ x: ((_ x: Int, _ y: Int) -> Void)?) {
x?(1, #^OPTIONAL_PARAMETER^#)
// OPTIONAL_PARAMETER-DAG: Literal[Integer]/None/TypeRelation[Convertible]: 0[#Int#]; name=0
}