Add test on signatures with nullable abbreviated types
Currently test fails, see KT-40199
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
|||||||
|
expect class Foo()
|
||||||
|
|
||||||
|
typealias TypeAlias = Foo
|
||||||
|
|
||||||
|
expect fun bar(x: TypeAlias?)
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
actual class Foo actual constructor()
|
||||||
|
|
||||||
|
actual fun bar(x: TypeAlias?) { }
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
actual class Foo actual constructor()
|
||||||
|
|
||||||
|
actual fun bar(x: TypeAlias?) { }
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
class Foo
|
||||||
|
|
||||||
|
typealias TypeAlias = Foo
|
||||||
|
|
||||||
|
fun bar(x: TypeAlias?) { }
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
class Foo
|
||||||
|
|
||||||
|
typealias TypeAlias = Foo
|
||||||
|
|
||||||
|
fun bar(x: TypeAlias?) { }
|
||||||
+2
@@ -15,4 +15,6 @@ class FunctionCommonizationFromSourcesTest : AbstractCommonizationFromSourcesTes
|
|||||||
fun testAnnotations() = doTestSuccessfulCommonization()
|
fun testAnnotations() = doTestSuccessfulCommonization()
|
||||||
|
|
||||||
fun testSpecifics() = doTestSuccessfulCommonization()
|
fun testSpecifics() = doTestSuccessfulCommonization()
|
||||||
|
|
||||||
|
fun testSignaturesWithNullableTypealiases() = doTestSuccessfulCommonization()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user