Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1028736 // test_tok_persistableClasses

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3878L/23K).

svoid test_tok_persistableClasses() {
  // no default constructor
  testTranspilationFunction tok_persistableClasses(
    "persistable static class bla { *(S x) {} }",
    "static class bla { *() {} *(S x) {} }");
    
  // no default constructor, but an argument-less function
  testTranspilationFunction tok_persistableClasses(
    "persistable static class bla { S blubb() { null; } }",
    "static class bla { *() {} S blubb() { null; } }");
    
  // weird case with method name = class name
  /*testTranspilationFunction tok_persistableClasses(
    "persistable static class bla { S bla() { null; } }",
    "static class bla { *() {} S bla() { null; } }");*/
    
  // with default constructor
  testTranspilationFunction tok_persistableClasses(
    "persistable static class bla { *() { print(); } }",
    "static class bla { *() { print(); } }");
}

Author comment

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: 144 / 245
Version history: 8 change(s)
Referenced in: [show references]