Libraryless. Click here for Pure Java version (3878L/23K).
1 | svoid test_tok_persistableClasses() {
|
2 | // no default constructor |
3 | testTranspilationFunction tok_persistableClasses( |
4 | "persistable static class bla { *(S x) {} }",
|
5 | "static class bla { *() {} *(S x) {} }");
|
6 | |
7 | // no default constructor, but an argument-less function |
8 | testTranspilationFunction tok_persistableClasses( |
9 | "persistable static class bla { S blubb() { null; } }",
|
10 | "static class bla { *() {} S blubb() { null; } }");
|
11 | |
12 | // weird case with method name = class name |
13 | /*testTranspilationFunction tok_persistableClasses( |
14 | "persistable static class bla { S bla() { null; } }",
|
15 | "static class bla { *() {} S bla() { null; } }");*/
|
16 | |
17 | // with default constructor |
18 | testTranspilationFunction tok_persistableClasses( |
19 | "persistable static class bla { *() { print(); } }",
|
20 | "static class bla { *() { print(); } }");
|
21 | } |
Began life as a copy of #1027846
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1028736 |
| Snippet name: | test_tok_persistableClasses |
| Eternal ID of this version: | #1028736/9 |
| Text MD5: | 6663599d9eba7a3ef22271a3db819910 |
| Transpilation MD5: | e76feb92d281311f165cac9a491510cc |
| Author: | stefan |
| Category: | javax / transpiling |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-04-04 17:50:47 |
| Source code size: | 876 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 426 / 592 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |