inspection request

i often name my type parameters T

and sometimes, this happens:
class[T](x:T) {
def method[T](t:T):T {.... return x}
}

and i get some funny error that T is not T.
it would be nice if there was an inspection telling me that name shadowing is waiting for me to mess up.

2 comments
Comment actions Permalink

Done (only type parameters shadowed by other type parameters). Thank you for suggestion.
For feature requests, it's also better to use our issue tracker.

Best regards,
Alexander Podhalyuzin.

0
Comment actions Permalink

yes, i know. i have been lazy. i will put the next feature request into youtrack twice to make up for it.

0

Please sign in to leave a comment.