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.
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.