class T object TopLevel { object Nested { fun T.foo() {} } } fun usage(t: T) { t.f } // INVOCATION_COUNT: 2 // ELEMENT: foo