Fix typealias usage nullability and annotations lost in deserialization

This fixes a regression introduced by the commit 4b0da0688a which made
deserializer expand typealiases but didn't take nullability and use site
annotations into account.

Issue #KT-40824 Fixed
This commit is contained in:
Sergey Igushkin
2020-08-01 00:26:45 +04:00
parent ec4f04095c
commit 070848a1c1
4 changed files with 47 additions and 2 deletions
@@ -38,6 +38,11 @@ public class CompileKotlinAgainstKotlinTestGenerated extends AbstractCompileKotl
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
}
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
}
@TestMetadata("annotationsOnTypeAliases.kt")
public void testAnnotationsOnTypeAliases() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
@@ -38,6 +38,11 @@ public class IrCompileKotlinAgainstKotlinTestGenerated extends AbstractIrCompile
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
}
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
}
@TestMetadata("annotationsOnTypeAliases.kt")
public void testAnnotationsOnTypeAliases() throws Exception {
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");