vsl-lang/VSL

Ensure no lone literals

Closed this issue · 2 comments

Ensure no lone-literals exist. If they are warn and remove them from the AST:

1 // warn & remove
f(1) // OK
func f() {
     1 // warn & remove
}

Note: Bug because has semantically broken meaning without removal

Currently ignores and emits a warning