SLC: use fully expanded type when computing nullability
^KT-62757 fixed
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class TypeAliasKt /* TypeAliasKt*/ {
|
||||
public static final void foo(@org.jetbrains.annotations.Nullable() java.lang.String);// foo(java.lang.String)
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// TypeAliasKt
|
||||
|
||||
typealias NullableString = String?
|
||||
|
||||
fun foo(ns: NullableString) {}
|
||||
+5
@@ -585,6 +585,11 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/nullabilityAnnotations/Trait.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAlias.kt")
|
||||
public void testTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/nullabilityAnnotations/typeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UnitAsGenericArgument.kt")
|
||||
public void testUnitAsGenericArgument() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/nullabilityAnnotations/UnitAsGenericArgument.kt");
|
||||
|
||||
Reference in New Issue
Block a user