Add a test with false positive "inferred into empty intersection"
Related to KT-50232
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
fun test() {
|
||||
acceptMyRecursive(<!INFERRED_TYPE_VARIABLE_INTO_EMPTY_INTERSECTION_WARNING!>inferType<!><<!UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED, UPPER_BOUND_VIOLATED!>MyRecursive?<!>>())
|
||||
}
|
||||
|
||||
fun acceptMyRecursive(value: MyRecursive?) {}
|
||||
|
||||
fun <R : Recursive<R>?> inferType(): R = TODO()
|
||||
|
||||
abstract class Recursive<R>
|
||||
|
||||
class MyRecursive : Recursive<MyRecursive>()
|
||||
Reference in New Issue
Block a user