blob: 3a3fed7436b39907e335c572bf5cc654c5e5ee3c [file] [log] [blame]
def foo() {
switch (a) {
case 1:
print 1
<warning descr="return is unnecessary as the last statement in a method with no return value">return</warning>
case 2:
print 2
return
}
}