open class Foo {} open class Bar {} fun foo(x : Int) {} fun foo(x : Long) {} fun f(): Unit { foo<Int, Int>(1) }