Files
swift-mirror/test/IDE/complete_lazy_initialized_var.swift

14 lines
585 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=LAZY_IN_CLASS_1 | FileCheck %s -check-prefix=LAZYVAR1
class FooClass1 {
lazy var lazyVar1 = 0
}
func lazyInClass1(a: FooClass1) {
a.#^LAZY_IN_CLASS_1^#
}
// This test checks that we dont include extra hidden declarations into code completion results. If you add more declarations to the type, update this test properly.
// LAZYVAR1: Begin completions, 1 items
// LAZYVAR1-NEXT: Decl[InstanceVar]/CurrNominal: lazyVar1[#Int#]{{; name=.+$}}
// LAZYVAR1-NEXT: End completions