Add '(byte)' and '(short)' type cast for int literals only in invocation parameters

This commit is contained in:
Dmitry Cherniachenko
2017-04-19 01:16:47 +02:00
committed by Egor.Ushakov
parent 7e1cb88fe2
commit 0a7a60fa7b
6 changed files with 43 additions and 10 deletions

View File

@@ -63,4 +63,9 @@ public class TestPrimitives {
public int getInt() {
return 42;
}
public void printNarrowed() {
printByte((byte)getInt());
printShort((short)getInt());
}
}