Add '(byte)' and '(short)' type cast for int literals only in invocation parameters
This commit is contained in:
committed by
Egor.Ushakov
parent
7e1cb88fe2
commit
0a7a60fa7b
@@ -63,4 +63,9 @@ public class TestPrimitives {
|
||||
public int getInt() {
|
||||
return 42;
|
||||
}
|
||||
|
||||
public void printNarrowed() {
|
||||
printByte((byte)getInt());
|
||||
printShort((short)getInt());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user