class Ideone { public static void main(String[] args) { int i = 0; short s = (short) i << 2; }}
Standard input is empty
Main.java:4: error: incompatible types: possible lossy conversion from int to short short s = (short) i << 2; ^ 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!