Create From Usage: Fix type substitution for no-receiver calls

This commit is contained in:
Alexey Sedunov
2014-10-24 13:47:28 +04:00
parent abbbd198fd
commit cede5ac58b
5 changed files with 7 additions and 5 deletions
@@ -5,7 +5,7 @@ import kotlin.properties.ReadOnlyProperty
class A<T>(val t: T) {
val x: A<Int> by foo(t, "")
fun <T> foo(t: T, s: String): ReadOnlyProperty<A<T>, A<Int>> {
fun foo(t: T, s: String): ReadOnlyProperty<A<T>, A<Int>> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -5,7 +5,7 @@ import kotlin.properties.ReadWriteProperty
class A<T>(val t: T) {
var x: A<Int> by foo(t, "")
fun <T> foo(t: T, s: String): ReadWriteProperty<A<T>, A<Int>> {
fun foo(t: T, s: String): ReadWriteProperty<A<T>, A<Int>> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}