[FIR] Fix type constraint for type parameter ^KT-45345 Fixed
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
|
||||
inline fun <T, reified S> foo(x: T?, y: T): T {
|
||||
if (x is S) return x
|
||||
if (x is S) return <!RETURN_TYPE_MISMATCH!>x<!>
|
||||
return y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user