KT-13544: support typealiases in JS backend
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class A {
|
||||
companion object {
|
||||
val result = "OK"
|
||||
}
|
||||
}
|
||||
|
||||
typealias Alias = A.Companion
|
||||
|
||||
fun box(): String = Alias.result
|
||||
@@ -15550,6 +15550,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasCompanion.kt")
|
||||
public void testTypeAliasCompanion() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasCompanion.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasConstructor.kt")
|
||||
public void testTypeAliasConstructor() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/typealias/typeAliasConstructor.kt");
|
||||
|
||||
Reference in New Issue
Block a user