We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when (expr1) { is Type1 -> when (expr1.field) { is Type2 -> when (foo(epxr1)) { SomeEnum.Field1 -> bar() SomeEnum.Field2 -> baz() } }
the when in is Type2 is not treated as an expression (it's treated as a statement, though it's an expression).
when
is Type2
WHEN_WITHOUT_ELSE shouldn't check when expressions at all until we have type resolution.
The text was updated successfully, but these errors were encountered:
Another false-positive: when expression is assigned to a var:
var x: Int x = when () ...
Sorry, something went wrong.
Issue #415
416710b
### What's done: * Fixes
Fix for #415 - WHEN_WITHOUT_ELSE doesn't recognize when expression in…
babf843
… when branch (#450) ### What's done: * Fixes
petertrr
Successfully merging a pull request may close this issue.
Describe the bug
the
when
inis Type2
is not treated as an expression (it's treated as a statement, though it's an expression).Expected behavior
WHEN_WITHOUT_ELSE shouldn't check when expressions at all until we have type resolution.
Environment information
The text was updated successfully, but these errors were encountered: