9a5abf368f
In a constraint system a new bound is incorporated: all new constrains that can be derived from it (and from existing ones) are added
8 lines
133 B
Kotlin
Vendored
8 lines
133 B
Kotlin
Vendored
interface Inv<I>
|
|
|
|
fun <S, T: S> Inv<T>.reduce2(): S = null!!
|
|
|
|
fun test(a: Inv<Int>): Int {
|
|
val b = 1 + a.reduce2()
|
|
return b
|
|
} |