Files
swift-mirror/test/IDE/complete_at_eof_no_newline_1.swift
Alex Hoppen 32eff21977 [IDE] Remove "Begin completions" and "End completions" from test cases
These test lines weren't actually providing any value and were annoying to write. Let's jut remove them.
2023-03-22 09:07:17 -07:00

14 lines
474 B
Swift

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=A | %FileCheck %s -check-prefix=A
// Make sure we can code complete at EOF when there is no newline in the last
// line.
//
// Don't add any tests at the end of the file!
//
// A-DAG: Decl[InstanceMethod]/CurrNominal: f()[#Void#]{{; name=.+$}}
struct FooStruct {
func f() {}
}
var fooObject: FooStruct
// There is no newline on the following line. Don't fix this!
fooObject.#^A^#