Files
kotlin-fork/compiler/testData/diagnostics/tests/explicitDefinitelyNotNullableViaIntersection/recursiveBounds.fir.kt
T
2022-02-04 14:33:33 +03:00

12 lines
289 B
Kotlin
Vendored

// !LANGUAGE: +DefinitelyNonNullableTypes
fun <T : Comparable<T & Any>> sort1() {}
fun <T : Comparable<T & Any>?> sort2() {}
class A1<K : Comparable<K & Any>>
class A2<K : Comparable<K & Any>?>
fun <R : T & Any, T> bar() {}
fun <<!CYCLIC_GENERIC_UPPER_BOUND!>E : E & Any<!>> baz() {}