do not add NO_EXPECTED_TYPE as a subtype constraint to constraint system
fixed exception from EA
This commit is contained in:
+14
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user