Created
October 18, 2014 12:05
-
-
Save kxbmap/c717455ad3d539f9adc9 to your computer and use it in GitHub Desktop.
IDEA 139.69.2 - good code red
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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