Float negation operator

This gives me compilation error:

let n: float = -9.9
-n->Js.log

The following gives me runtime error:

let n: float = -9.9
-.n->Js.log 

It emits console.log(--9.9); in JS.
Is it a bug?

1 Like

Would you create an issue in the compiler repo?

1 Like

I created an issue at https://github.com/rescript-lang/rescript-compiler/issues/5736.