Skip to content

Commit

Permalink
Add comment in switch expression tests (#545)
Browse files Browse the repository at this point in the history
Follow up to #543, see #543 (comment)
  • Loading branch information
msridhar authored Jan 10, 2022
1 parent ae3629d commit 5e3e5e4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public void testSwitchExprLambda() {
"class SwitchExpr {",
" int i;",
" public void testSwitchExprLambda() {",
" // Here we just test to make sure there is no crash. We need better",
" // generics support to do a more substantive test.",
" Function<SwitchExpr,Object> f = (s) -> switch (s.i) { case 3, 4, 5 -> new Object(); default -> \"hello\"; };",
" }",
"}")
Expand Down

0 comments on commit 5e3e5e4

Please sign in to comment.