class A {} fun foo(a: A) {} fun bar() { foo(A()) }