Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/nestedCalls/kt7597.kt
T
Svetlana Isakova 9a5abf368f Constraint incorporation
In a constraint system a new bound is incorporated:
all new constrains that can be derived from it
(and from existing ones) are added
2015-07-10 15:05:04 +03:00

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
}