Introduce Type Alias: Support type constructor extraction

This commit is contained in:
Alexey Sedunov
2016-07-19 18:18:24 +03:00
parent b5828a5fa1
commit 0769d47f4b
8 changed files with 85 additions and 22 deletions
@@ -0,0 +1,10 @@
// NAME: S
class A<X, Y>
class B<T>
// SIBLING:
fun foo(a: <selection>A</selection><(Int) -> B<Int>, B<String>?>) {
}
@@ -0,0 +1,12 @@
// NAME: S
class A<X, Y>
class B<T>
typealias S<T, U> = A<T, U>
// SIBLING:
fun foo(a: S<(Int) -> B<Int>, B<String>?>) {
}