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

21 lines
691 B
Swift

// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift
// RUN: %target-swift-ide-test -code-completion -source-filename %t/Test.swift -I %t -code-completion-token=OPAQUE_RESULT | %FileCheck --check-prefix=OPAQUE_RESULT %s
// BEGIN MyModule.swift
public protocol HasAssocWithConstraint {
associatedtype AssocWithContraint: HasAssocWithConstraint
var value: AssocWithContraint { get }
}
// BEGIN Test.swift
import MyModule
struct MyValue: HasAssocWithConstraint {
var #^OPAQUE_RESULT^#
// OPAQUE_RESULT-DAG: Decl[InstanceVar]/Super: value: some HasAssocWithConstraint;
}