// "Create function 'foo' from usage" "true" class A(val n: T) { fun foo(a: Int): A = throw Exception() } fun test() { val a: A = A(1).foo(2, "2") }