diff options
Diffstat (limited to 'tests/errors/BadStaticCast.java')
-rw-r--r-- | tests/errors/BadStaticCast.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/errors/BadStaticCast.java b/tests/errors/BadStaticCast.java new file mode 100644 index 000000000..6fbe3b1e3 --- /dev/null +++ b/tests/errors/BadStaticCast.java @@ -0,0 +1,8 @@ +// Incorrect static casts to primitively foldable arguments should not +// crash the compiler. +public class BadStaticCast { + public static int foo() { + return 3 + (int)true; + } +} + |