Grammar-Kit icon indicating copy to clipboard operation
Grammar-Kit copied to clipboard

psiImplUtilClass method matching fails for methods w/ generic method parameters

Open calexHG opened this issue 8 years ago • 0 comments

The following, unfortunately does not get matched:

        @JvmStatic @Override fun <TElement : PsiNamedElement>
        setName( element: TElement, @NonNls name: String ): TElement
        {
            // ...
        }

Only a lesser implementation like the following will get matched:

        @JvmStatic @Override fun
        setName( element: PsiNamedElement, @NonNls name: String ): PsiNamedElement
        {
            // ...
        }

..So one must instead create a new mixin class for every class that wants to implement common generic methods.

(Kotlin code)

calexHG avatar Mar 08 '17 06:03 calexHG