Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1-rc-3
-
None
-
None
Description
int a = 41 int b = 4 void failsafe(Closure action) { try { action.call() } catch (Throwable e) { e.printStackTrace() } } GString gs = "${b}1" failsafe { println gs == a } // true failsafe { println a == gs } // throws ClassCastException String s = '41' failsafe { println a == s } // throws ClassCastException failsafe { println s == a } // throws ClassCastException
I haven't attached a testcase as I'm not sure what the right behavior is.