Type aliases: do not reparse RHS of type alias declaration in expanded type resolution

This commit is contained in:
Dmitry Petrov
2016-06-02 14:12:10 +03:00
parent 79ce614591
commit df335b9e8d
10 changed files with 48 additions and 20 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
typealias S = String
val OK: S = "OK"
typealias SF<T> = (T) -> S
fun box(): S = OK
val f: SF<S> = { it }
fun box(): S = f("OK")