tests added

for inference for delegated properties
This commit is contained in:
Svetlana Isakova
2013-06-05 15:27:12 +04:00
parent ef2af3a4e8
commit f41584c7ab
3 changed files with 60 additions and 0 deletions
@@ -0,0 +1,17 @@
package foo
open class A {
val B.w: Int by <!TYPE_INFERENCE_UPPER_BOUND_VIOLATED!>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")
}
}