// "Create member function 'A.plus'" "true" class A(val n: T) { operator fun unaryPlus(): A = throw Exception() operator fun plus(t: T): A { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } fun test() { val a: A = A(1) + 2 }