Files
swift-mirror/test/IDE/complete_override_extension.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

37 lines
1.2 KiB
Swift

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token CONFORMANCE_EXT | %FileCheck %s --check-prefix=CONFORMANCE_EXT
protocol P {
init(requirement: Int)
init(customizable: Int)
var requirementVar: Int { get }
var customizableVar: Int { get }
func requirementMethod()
func customizableMethod()
}
extension P {
init(customizable v: Int) { self.init(requirement: v) }
init(nonRequirement v: Int) { self.init(requirement: v) }
var customizableVar: Int { 1 }
var nonRequirementVar: Int { 1 }
func customizableMethod() {}
func nonRequirement() {}
}
struct S: P {
#^CONFORMANCE_EXT^#
// CONFORMANCE_EXT-NOT: nonRequirement
// CONFORMANCE_EXT-DAG: Decl[Constructor]/Super: init(requirement: Int) {|};
// CONFORMANCE_EXT-DAG: Decl[Constructor]/Super: init(customizable: Int) {|};
// CONFORMANCE_EXT-DAG: Decl[InstanceVar]/Super: var requirementVar: Int;
// CONFORMANCE_EXT-DAG: Decl[InstanceVar]/Super: var customizableVar: Int;
// CONFORMANCE_EXT-DAG: Decl[InstanceMethod]/Super: func requirementMethod() {|};
// CONFORMANCE_EXT-DAG: Decl[InstanceMethod]/Super: func customizableMethod() {|};
// CONFORMANCE_EXT-NOT: nonRequirement
}