rescript-lang/reanalyze

@inline seems to negate @live/@dead

Closed this issue · 1 comments

zth commented
@inline @live
let someValue = "something"

reanalyze reports someValue as dead even though it's annotated with @live. Same when using @dead. Removing @inline makes it all work as intended again.

Turns out the compiler's ad-hoc treatment of inline gets in the way here. Annotations are removed and the value declaration becomes an external with special encoding.