backend: improve typealias support:
* handle TypeAliasConstructorDescriptor in codegen * ignore ignore typealias declaration in codegen Also add test 'typealias1'.
This commit is contained in:
committed by
SvyatoslavScherbina
parent
65444ec690
commit
0958d32605
@@ -143,6 +143,11 @@ task safe_cast(type: RunKonanTest) {
|
||||
source = "codegen/basics/safe_cast.kt"
|
||||
}
|
||||
|
||||
task typealias1(type: RunKonanTest) {
|
||||
goldValue = "42\n"
|
||||
source = "codegen/basics/typealias1.kt"
|
||||
}
|
||||
|
||||
task aritmetic(type: RunKonanTest) {
|
||||
source = "codegen/function/arithmetic.kt"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
fun main(args: Array<String>) {
|
||||
println(Bar(42).x)
|
||||
}
|
||||
|
||||
class Foo(val x: Int)
|
||||
typealias Bar = Foo
|
||||
Reference in New Issue
Block a user