v icon indicating copy to clipboard operation
v copied to clipboard

fmt: fix fmt for $compile_warn

Open felipensp opened this issue 2 years ago • 1 comments

Fix #17445

felipe@~/github/v (master)$ v run bug.v
bug.v:2:2: warning: WARN
    1 | fn main() {
    2 |     $compile_warn('WARN')
      |     ~~~~~~~~~~~~~~~~~~~~~
    3 | }
felipe@~/github/v (master)$ v fmt bug.v
fn main() {
        .$compile_warn(WARN)
}

felipensp avatar Mar 01 '23 12:03 felipensp

Can you also add a test?

Delta456 avatar Mar 01 '23 12:03 Delta456