forked from swiftlang/swift
- Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomplete_crossmodule.swift
20 lines (15 loc) · 693 Bytes
/
complete_crossmodule.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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
publicprotocolHasAssocWithConstraint{
associatedtypeAssocWithConstraint:HasAssocWithConstraint
varvalue:AssocWithConstraint{get}
}
// BEGIN Test.swift
import MyModule
structMyValue:HasAssocWithConstraint{
var #^OPAQUE_RESULT^#
// OPAQUE_RESULT-DAG: Decl[InstanceVar]/Super: value: some HasAssocWithConstraint;
}