Hi there,

is this the intended behaviour?

===
groovy:000> switch (String) { case Class: println "C"; break; case {it 
instanceof Class}: println "CC" }
CC
===> null
groovy:000> 
===

Based on the switch documented semantic I would presume "C" should be printed 
out, not "CC"?

Thanks and all the best,
OC

Reply via email to