mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
`CS.solve()` with `FreeTypeVariableBinding::Disallow` still may emit unresolved type. e.g. `DeclRefExpr` to decl with unresolved type. https://bugs.swift.org/browse/SR-8568 rdar://problem/43433253
10 lines
194 B
Swift
10 lines
194 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
|
|
|
|
|
|
struct S<T> {}
|
|
func use<T>(x: (S<T>) -> Void) {}
|
|
|
|
func test() {
|
|
use { $0 #^COMPLETE^# }
|
|
}
|