Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar48896424.swift
Rintaro Ishizaki 71aeea93f5 [CodeCompletion] Fix an assertion failure
If the type has unbound generic parameter, we cannot substitute types
for member decls.

rdar://problem/48896424
2019-03-14 12:22:19 -07:00

18 lines
267 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
class Foo<T> {
}
extension Foo where T: Comparable {
func foo() {}
}
protocol P {
typealias alias = Foo
}
protocol P {}
func Test() {
P.alias.#^COMPLETE^#
}