cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 160 forks source link

Double not converted to double #542

Closed Icare67 closed 4 years ago

Icare67 commented 4 years ago

Double is not unboxed even if unboxing is called explicitly.

double a = 1;
Double d = new Double(1);
double b = d.doubleValue();
if (a!=b)
{
    System.err.println("Houston we have a problem");
};
lgrignon commented 4 years ago

Hello, I cannot reproduce https://github.com/cincheo/jsweet/commit/8a68a70555afd66e5399a880ee957776e5263fff

Are you using J4TS please?