class Abcde {
public static double foo = 2 << 16 - 1
}
This code snippet results in the error "Shift distance must be an integral type but 15.0 (java.lang.double) was supplied. Removing the static modifier or putting parenthesis around the shift operation makes the error go away.
This code snippet results in the error "Shift distance must be an integral type but 15.0 (java.lang.double) was supplied. Removing the static modifier or putting parenthesis around the shift operation makes the error go away.