// "Create class 'Foo'" "true" // ERROR: Type inference failed: constructor Foo(u: U)
cannot be applied to
(U)
// ERROR: Type mismatch: inferred type is U but U was expected class A(val n: T) { } fun test(u: U) { val a = A(u).Foo(u) }