Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/inference/extensionProperty.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

20 lines
409 B
Kotlin
Vendored

package foo
open class A {
val B.w: Int by <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>MyProperty<!>()
}
val B.r: Int by <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>MyProperty<!>()
val A.e: Int by MyProperty()
class B {
val A.f: Int by MyProperty()
}
class MyProperty<R : A, T> {
public fun get(thisRef: R, desc: PropertyMetadata): T {
throw Exception("$thisRef $desc")
}
}