-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lgrignon
committed
Oct 5, 2019
1 parent
9c3104a
commit 8a68a70
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package source.calculus; | ||
|
||
import static jsweet.util.Lang.$export; | ||
|
||
public class Boxing { | ||
|
||
public static void main(String[] args) { | ||
double a = 1; | ||
Double d = new Double(1); | ||
double b = d.doubleValue(); | ||
if (a == b) { | ||
$export("unboxedEquals", true); | ||
} | ||
|
||
} | ||
|
||
} |
8a68a70
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. I'm using j4ts.
The generated code with j4ts is
without j4ts, I get
I'm surprised that J4ts has an influence on such a simple example. I will report the bug on j4ts . Thanks