Create from usage: Support extension members for Java classes

This commit is contained in:
Alexey Sedunov
2015-02-10 15:16:35 +03:00
parent 9f3ba50dc5
commit e75bd1b41b
4 changed files with 58 additions and 21 deletions
@@ -5,6 +5,6 @@ fun test(): Int {
return A().foo(1, "2")
}
fun Any.foo(i: Int, s: String): Int {
fun A.foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}