type compatibility constrain: boxing is not completeness-preserving: move treatment to return constraint

This commit is contained in:
Anna Kozlova
2014-01-31 15:23:39 +04:00
parent 4444fc1126
commit af8095f8b0
4 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
public class Sample {
static <T> T foo(T t) { return null; }
static {
long l11 = foo(1 );
}
}