You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "PengYang (JIRA)" <ji...@apache.org> on 2019/04/25 03:28:00 UTC
[jira] [Assigned] (FLINK-12328) Invalid Express
[ https://issues.apache.org/jira/browse/FLINK-12328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
PengYang reassigned FLINK-12328:
--------------------------------
Assignee: PengYang (was: chauncy)
> 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: PengYang
> Priority: Major
>
> 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)