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