[Commonizer] Tests for missed supertypes in commonized type aliases

^KT-41247
This commit is contained in:
Dmitriy Dolovov
2020-08-31 13:34:22 +07:00
parent 96736b0126
commit 74dce725cc
10 changed files with 44 additions and 0 deletions
@@ -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()
@@ -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
@@ -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()
@@ -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 {}
@@ -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()
@@ -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 {}
@@ -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()
@@ -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 {}
@@ -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()
@@ -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 {}