https://kotlinlang.org logo
Title
s

sannysanoff

04/17/2017, 9:26 AM
Hi, is it supposed to work? named@for() { synchronized(obj) { ... continue@named; } } ? I was under impression that synchronized is inline function, and therefore there's no restrictions on control flow statements inside passed lambda, but compiler gives an error.
s

sreich

04/17/2017, 10:00 AM
That issues link is broken. Just goes to the kotlin book page
e

elizarov

04/17/2017, 10:06 AM
Yes. It is an old one. The description is self-explaining, though. There is not much more to say. But I’ll comment there on why this issue does not have a straght-forward design.
(just added comment to the issue)
s

sannysanoff

04/17/2017, 2:13 PM
Roman, thanks, I got the idea why it's still not implemented. Needs more thinking.