Codegen should just skip (local) type alias declarations.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user