// "Create member function 'A.foo'" "true" class A(val n: T) { fun foo(a: Int): A = throw Exception() fun foo(a: T, s: String): A { TODO("Not yet implemented") } } fun test() { val a: A = A(1).foo(2, "2") }