Create from Usage: Add infix modifier to functions generated from binary expressions

#KT-10184 Fixed
This commit is contained in:
Alexey Sedunov
2015-11-26 13:37:43 +03:00
parent 5b90c09ab1
commit e37eea2b2d
18 changed files with 21 additions and 18 deletions
@@ -3,7 +3,7 @@
class A<T>(val n: T) {
fun plus(i: Int, s: String): A<T> = throw Exception()
operator fun plus(t: T): A<T> {
infix operator fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}