mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I could never remember the command to run batch code completion tests. Add a lit substitution for it.
7 lines
210 B
Swift
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
|
|
}
|