scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

Improve unused check of variable in assignment body

Open som-snytt opened this issue 6 days ago • 0 comments

Fixes #24280

In an assign i = f(i), the rhs i is not taken as a read because an enclosing context is an assign to i and the position of the reference is enclosed by the assign tree.

som-snytt avatar Dec 06 '25 22:12 som-snytt