9 lines
164 B
Kotlin
9 lines
164 B
Kotlin
// "Create function 'plus' from usage" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
fun plus(): A<T> = throw Exception()
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = A(1) + <caret>2
|
|
} |