2 Replies Last post: Feb 11, 2012 10:28 PM by HamsterofDeath  
HamsterofDeath  Apprentice 653 posts since
Jan 19, 2004
Currently Being Moderated

Feb 5, 2012 11:19 PM

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.

Alexander Podkhalyuzin JetBrains 687 posts since
Jun 7, 2008
Currently Being Moderated
Feb 6, 2012 12:52 PM in response to: HamsterofDeath
Re: inspection request

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.

More Like This

  • Retrieving data ...