9 lines
158 B
Kotlin
9 lines
158 B
Kotlin
// "Create function 'minus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
fun minus(n: Int): A<T> = throw Exception()
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = <caret>-A(1)
|
|
} |