FIR: fix substitution of type arguments in SAM type aliases
^KT-54730 Fixed
This commit is contained in:
+4
-5
@@ -58,11 +58,11 @@ fun test2(): Function1<Function0<String>, KSupplier<String>> {
|
||||
|
||||
fun test2a(): Function1<Function0<String>, KSupplier<String>> {
|
||||
return { // BLOCK
|
||||
local fun KSupplier(function: Function0<String>): KSupplier<String> {
|
||||
local fun KSS(function: Function0<String>): KSupplier<String> {
|
||||
return CHECK_NOT_NULL<Function0<String>>(arg0 = function) /*-> KSupplier<String> */
|
||||
}
|
||||
|
||||
::KSupplier
|
||||
::KSS
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,11 +78,11 @@ fun test3(): Function1<Function1<String, Unit>, KConsumer<String>> {
|
||||
|
||||
fun test3a(): Function1<Function1<String, Unit>, KConsumer<String>> {
|
||||
return { // BLOCK
|
||||
local fun KConsumer(function: Function1<String, Unit>): KConsumer<String> {
|
||||
local fun KCS(function: Function1<String, Unit>): KConsumer<String> {
|
||||
return CHECK_NOT_NULL<Function1<String, Unit>>(arg0 = function) /*-> KConsumer<String> */
|
||||
}
|
||||
|
||||
::KConsumer
|
||||
::KCS
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,4 +95,3 @@ fun test3b(): KFunction<KConsumer<String>> {
|
||||
::KConsumer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user