mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
9 lines
174 B
Kotlin
Vendored
9 lines
174 B
Kotlin
Vendored
// "Create member function 'plus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
operator fun unaryPlus(): A<T> = throw Exception()
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = A(1) +<caret> 2
|
|
} |