NI: don't filter flexible types during CST calculation and force return as result the first of such types
^KT-35658 Fixed
This commit is contained in:
Vendored
+1
-1
@@ -16,5 +16,5 @@ fun <R> foo(f: () -> R): R = f()
|
||||
fun test(n: Number) {
|
||||
val a = select(foo { JavaTest.createNumberArray() }, emptyArray())
|
||||
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.Array<(kotlin.Number..kotlin.Number?)>..kotlin.Array<out (kotlin.Number..kotlin.Number?)>?)")!>a<!>
|
||||
<!DEBUG_INFO_EXPRESSION_TYPE("(kotlin.Array<(kotlin.Number..kotlin.Number?)>..kotlin.Array<(kotlin.Number..kotlin.Number?)>?)")!>a<!>
|
||||
}
|
||||
Reference in New Issue
Block a user