[FIR] Add checker for finite bounds validation
Added a new FIR based checker for both FINITE_BOUNDS_VIOLATION and FINITE_BOUNDS_VIOLATION_IN_JAVA errors. Implementation copied from the existing descriptor based checker with some minor changes. #KT-59378 Fixed
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ class A<T : Inv<in T>> {
|
||||
fun foo(): T = null!!
|
||||
}
|
||||
|
||||
class Inv2<T : Inv2<in T>>(val x: T)
|
||||
class Inv2<<!FINITE_BOUNDS_VIOLATION!>T : Inv2<in T><!>>(val x: T)
|
||||
|
||||
fun main(a: A<*>, j: JavaClass<*>, i2: Inv2<*>) {
|
||||
// Probably it's too restrictive to suppose star projection type here as Any?,
|
||||
|
||||
Reference in New Issue
Block a user