Files
swift-mirror/test/IDE/complete_at_eof_no_newline_2.swift
Denis Vnukov 152df92966 [CodeCompletion] Code Completion String getName should always return non-empty string value for
valid code completions. Code completion tests call and validate getName’s result. 

A minor fix for code completion fro subscripts.



Swift SVN r25101
2015-02-09 22:32:05 +00:00

14 lines
459 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: Begin completions
// A-DAG: Decl[FreeFunction]/CurrModule: f()[#Void#]{{; name=.+$}}
// A: End completions
func f() {}
// There is no newline on the following line. Don't fix this!
#^A^#