Description
The following test case executes successfully when compiled+executed as java. However it throws the exception "Cannot use mod() on this number type: java.math.BigDecimal with value: 10.7" when executed as groovy.
public class TesCastPrecedence { @org.junit.Test public void testCastWithMod() { long result = (long)10.7 % 3L; System.out.println(result); org.junit.Assert.assertEquals(result, 1L); } }