Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0, 1.1-beta-1, 1.1-beta-2
-
None
Description
A duck typing check like the following causes an internal error.
groovy> x = 0; try
{ *x }catch (IllegalArgumentException)
{ "not spreadable" }groovy> go
Caught: BUG! exception in phase 'class generation' in source unit 'CommandLine.groovy' SpreadExpression should not be visited here
looks like we forgot to remove that usage of the spread operator. the same code will now throw an parse error.