do not add NO_EXPECTED_TYPE as a subtype constraint to constraint system

fixed exception from EA
This commit is contained in:
Svetlana Isakova
2013-09-30 14:23:57 +04:00
parent 0a0f76239f
commit 6c584fd252
8 changed files with 68 additions and 2 deletions
@@ -0,0 +1,14 @@
class A {
var a by <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>MyProperty<!>()
}
class MyProperty<T, R> {
public fun get(thisRef: R, desc: PropertyMetadata): T {
throw Exception("$thisRef $desc")
}
public fun set(thisRef: R, desc: PropertyMetadata, t: T) {
throw Exception("$thisRef $desc $t")
}
}
@@ -0,0 +1,10 @@
package test
class A {
var a by MyProperty()
}
class MyProperty<T> {
fun get(t: T, p: PropertyMetadata): Int = 42
fun set(t: T, p: PropertyMetadata, i: Int) {}
}
@@ -0,0 +1,14 @@
package test
internal final class A {
/*primary*/ public constructor A()
internal final var a: jet.Int
internal final fun <get-a>(): jet.Int
internal final fun <set-a>(/*0*/ <set-?>: jet.Int): jet.Unit
}
internal final class MyProperty</*0*/ T> {
/*primary*/ public constructor MyProperty</*0*/ T>()
internal final fun get(/*0*/ t: T, /*1*/ p: jet.PropertyMetadata): jet.Int
internal final fun set(/*0*/ t: T, /*1*/ p: jet.PropertyMetadata, /*2*/ i: jet.Int): jet.Unit
}