mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
9 lines
170 B
Kotlin
9 lines
170 B
Kotlin
// "Create function 'plus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
fun plus(i: Int, s: String): A<T> = throw Exception()
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = A(1) <caret>+ 2
|
|
} |