Skip to content

Instantly share code, notes, and snippets.

@kxbmap
Created October 18, 2014 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kxbmap/c717455ad3d539f9adc9 to your computer and use it in GitHub Desktop.
Save kxbmap/c717455ad3d539f9adc9 to your computer and use it in GitHub Desktop.
IDEA 139.69.2 - good code red
package sample;
import java.util.Map;
/**
*
*/
public class GoodCodeRed<V> {
public <K> Map<K, V> test(K k) {
return null;
}
public <T> void fun(T m) {
}
void run() {
test(""); // OK
fun(test("")); // 'test(K)' in 'sample.GoodCodeRed' cannot be applied to '(java.lang.String)'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment