// "Create member function 'minus'" "true" class A(val n: T) { fun minus(n: Int): A = throw Exception() operator fun minus(): A { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } } fun test() { val a: A = -A(1) }