Codegen should just skip (local) type alias declarations.

This commit is contained in:
Dmitry Petrov
2016-06-09 19:35:31 +03:00
parent c04b16d6cc
commit a4267f069d
3 changed files with 27 additions and 0 deletions
@@ -0,0 +1,16 @@
class Cell<TC>(val x: TC)
object OkHost {
val value = "OK"
}
fun <T> id(x: T): T {
typealias C = Cell<T>
val c: C = C(x)
return c.x
}
fun box(): String {
typealias OK = OkHost
return id(OK.value)
}