[LC] add test on unit type actualization
^KT-65843
This commit is contained in:
committed by
Space Team
parent
b0171dea63
commit
8dd66c0810
+16
@@ -0,0 +1,16 @@
|
||||
public final class Usage /* mypack.Usage*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final kotlin.Unit prop;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.Unit getProp();// getProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final kotlin.Unit getNullableProperty();// getNullableProperty()
|
||||
|
||||
public Usage();// .ctor()
|
||||
|
||||
public final void foo();// foo()
|
||||
|
||||
public final void usage(@org.jetbrains.annotations.NotNull() kotlin.Unit);// usage(kotlin.Unit)
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
public final class Usage /* mypack.Usage*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final kotlin.Unit prop;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.Unit foo();// foo()
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final kotlin.Unit getProp();// getProp()
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final kotlin.Unit getNullableProperty();// getNullableProperty()
|
||||
|
||||
public Usage();// .ctor()
|
||||
|
||||
public final void usage(@org.jetbrains.annotations.NotNull() kotlin.Unit);// usage(kotlin.Unit)
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
// mypack.Usage
|
||||
// SKIP_IDE_TEST
|
||||
// MODULE: common
|
||||
// FILE: common.kt
|
||||
package mypack
|
||||
|
||||
expect class MyPlatformSpecificClass
|
||||
|
||||
// MODULE: main-jvm()()(common)
|
||||
// FILE: usage.kt
|
||||
package mypack
|
||||
|
||||
actual typealias MyPlatformSpecificClass = Unit
|
||||
|
||||
class Usage {
|
||||
fun foo(): MyPlatformSpecificClass {
|
||||
|
||||
}
|
||||
|
||||
val prop: MyPlatformSpecificClass
|
||||
val nullableProperty: MyPlatformSpecificClass? get() = null
|
||||
|
||||
fun usage(voidParam: MyPlatformSpecificClass) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user