Skip to content

Commit

Permalink
Fix Painless void return bug (#38046)
Browse files Browse the repository at this point in the history
Painless now allows void functions and contexts to with a void return type to use
a return statement without a following expression.
  • Loading branch information
jdconrad committed Jan 31, 2019
1 parent b8575c6 commit e066a59
Show file tree
Hide file tree
Showing 5 changed files with 535 additions and 461 deletions.
2 changes: 1 addition & 1 deletion modules/lang-painless/src/main/antlr/PainlessParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ dstatement
| declaration # decl
| CONTINUE # continue
| BREAK # break
| RETURN expression # return
| RETURN expression? # return
| THROW expression # throw
| expression # expr
;
Expand Down
Loading

0 comments on commit e066a59

Please sign in to comment.