[Commonizer] Tests for missed supertypes in commonized type aliases
^KT-41247
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
// this is to avoid missing Kotlin/Native stdlib
|
||||
package kotlinx.cinterop
|
||||
|
||||
// fake class with the default constructor and no member scope
|
||||
public abstract class CStructVar()
|
||||
Vendored
+3
@@ -28,3 +28,6 @@ typealias U = A // same nullability of the RHS class
|
||||
expect class V // different nullability of the RHS class
|
||||
typealias W = A // same nullability of the RHS TA
|
||||
typealias Y = V // TA at the RHS with the different nullability of own RHS
|
||||
|
||||
// Supertypes:
|
||||
expect class FILE : kotlinx.cinterop.CStructVar
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// this is to avoid missing Kotlin/Native stdlib
|
||||
package kotlinx.cinterop
|
||||
|
||||
// fake class with the default constructor and no member scope
|
||||
public abstract class CStructVar()
|
||||
+4
@@ -16,3 +16,7 @@ actual typealias T = Int
|
||||
// Nullability:
|
||||
actual typealias V = A? // different nullability of the RHS class
|
||||
typealias X = U? // different nullability of the RHS TA
|
||||
|
||||
// Supertypes:
|
||||
actual typealias FILE = _IO_FILE
|
||||
final class _IO_FILE : kotlinx.cinterop.CStructVar {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// this is to avoid missing Kotlin/Native stdlib
|
||||
package kotlinx.cinterop
|
||||
|
||||
// fake class with the default constructor and no member scope
|
||||
public abstract class CStructVar()
|
||||
+4
@@ -16,3 +16,7 @@ actual typealias T = String
|
||||
// Nullability:
|
||||
actual typealias V = A // different nullability of the RHS class
|
||||
typealias X = U // different nullability of the RHS TA
|
||||
|
||||
// Supertypes:
|
||||
actual typealias FILE = __sFILE
|
||||
final class __sFILE : kotlinx.cinterop.CStructVar {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// this is to avoid missing Kotlin/Native stdlib
|
||||
package kotlinx.cinterop
|
||||
|
||||
// fake class with the default constructor and no member scope
|
||||
public abstract class CStructVar()
|
||||
+4
@@ -36,3 +36,7 @@ typealias V = A? // different nullability of the RHS class
|
||||
typealias W = U // same nullability of the RHS TA
|
||||
typealias X = U? // different nullability of the RHS TA
|
||||
typealias Y = V // TA at the RHS with the different nullability of own RHS
|
||||
|
||||
// Supertypes:
|
||||
typealias FILE = _IO_FILE
|
||||
final class _IO_FILE : kotlinx.cinterop.CStructVar {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// this is to avoid missing Kotlin/Native stdlib
|
||||
package kotlinx.cinterop
|
||||
|
||||
// fake class with the default constructor and no member scope
|
||||
public abstract class CStructVar()
|
||||
+4
@@ -36,3 +36,7 @@ typealias V = A // different nullability of the RHS class
|
||||
typealias W = U // same nullability of the RHS TA
|
||||
typealias X = U // different nullability of the RHS TA
|
||||
typealias Y = V // TA at the RHS with the different nullability of own RHS
|
||||
|
||||
// Supertypes:
|
||||
typealias FILE = __sFILE
|
||||
final class __sFILE : kotlinx.cinterop.CStructVar {}
|
||||
Reference in New Issue
Block a user