aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/BadStaticCast.java
blob: 6fbe3b1e37d6d2747fa9aa88f31faef3862dbfe5 (plain)
1
2
3
4
5
6
7
8
// Incorrect static casts to primitively foldable arguments should not
// crash the compiler.
public class BadStaticCast {
    public static int foo() {
	return 3 + (int)true;
    }
}