summaryrefslogblamecommitdiff
path: root/test/files/continuations-neg/t5314-return-reset.check
blob: 4c817ae14dfb4f0653edabc5337da568e7c15f0c (plain) (tree)
1
2
3
4
                                                                                                


                                                                                         
t5314-return-reset.scala:14: error: return expression not allowed, since method calls CPS method
      if (rnd.nextInt(100) > 50) return 5 // not allowed, since method is calling `reset`
                                 ^
one error found