Libraryless. Click here for Pure Java version (3784L/23K).
1 | svoid test_tok_ifNullAssign() {
|
2 | testTranspilationFunction tok_ifNullAssign( |
3 | "return a if null = blabla();", |
4 | "{ if (a == null) a = blabla(); return a; }",
|
5 | "a if null = blubb;", |
6 | "if (a == null) a = blubb;", |
7 | ); |
8 | } |
Began life as a copy of #1030390
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030765 |
| Snippet name: | test_tok_ifNullAssign (OK) |
| Eternal ID of this version: | #1030765/5 |
| Text MD5: | 435d3985e6df51e4c8ec807829221fa5 |
| Transpilation MD5: | ee5a71bf507552819384a484826371a4 |
| Author: | stefan |
| Category: | javax / transpiling |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-03-19 15:30:10 |
| Source code size: | 240 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 369 / 515 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |