[jira] [Created] (FLINK-12328) Invalid Express

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-12328) Invalid Express

Shang Yuanchun (Jira)
chauncy created FLINK-12328:
-------------------------------

             Summary: Invalid Express
                 Key: FLINK-12328
                 URL: https://issues.apache.org/jira/browse/FLINK-12328
             Project: Flink
          Issue Type: Improvement
    Affects Versions: 1.8.0
            Reporter: chauncy
            Assignee: chauncy


TestObjectWithBogusReturns#run
try {
      nums.map { x => return 1; x * 2}.print()
    } catch {
      case inv: ReturnStatementInClosureException => // all good
      case _: Throwable => fail("Bogus return statement not detected.")
    }
this is nums.map function ,x*2 is invalid



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)