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