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

61
LINES

< > BotCompany Repo | #1031906 // test_tok_multiTypeArguments

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

Transpiled version (6056L) is out of date.

svoid test_tok_multiTypeArguments() {
  testTranspilationFunction tok_multiTypeArguments_v2(
    [[ sS loadTextFile(File/S file) { ... } ]],
    [[
      sS loadTextFile(S file) { return loadTextFile(newFile(file)); }
      sS loadTextFile(File file) { ... }
    ]],
    [[ sS loadTextFile(File/S file, S def) { ... } ]],
    [[
      sS loadTextFile(S file, S def) { return loadTextFile(newFile(file), def); }
      sS loadTextFile(File file, S def) { ... }
    ]],
    [[ sS loadTextFile(File/S file) { ... } ]],
    [[
      sS loadTextFile(S file) { return loadTextFile(newFile(file)); }
      sS loadTextFile(File file) { ... }
    ]],
    
    [[ void bla(Graphics2D etc g, int x, int y) { yo; } ]],
    [[
      void bla(BufferedImage g, int x, int y) { bla(graphics(g), x, y); }
      void bla(Graphics2D g, int x, int y) { yo; }
    ]],
    
    [[ void bla(Iterable<A> or A[] l) { yo; } ]],
    [[
      void bla(A[] l) { bla(asList(l)); }
      void bla(Iterable<A> l) { yo; }
    ]],
    
    [[ void bla(Iterable<A> or A... l) { yo; } ]],
    [[
      void bla(A... l) { bla(asList(l)); }
      void bla(Iterable<A> l) { yo; }
    ]],
    
    [[ void bla(Cl or O... l) { yo; } ]],
    [[
      void bla(O... l) { bla(asList(l)); }
      void bla(Cl l) { yo; }
    ]],
    
    [[ void bla(Cl/O... l) { yo; } ]],
    [[
      void bla(O... l) { bla(asList(l)); }
      void bla(Cl l) { yo; }
    ]],
    
    [[ void bla(Collection/Object... l) { yo; } ]],
    [[
      void bla(Object... l) { bla(asList(l)); }
      void bla(Collection l) { yo; }
    ]],
    
    [[ void bla(Pt etc p) { yo; } ]],
    [[
      void bla(int p_x, int p_y) { bla(pt(p_x, p_y)); }
      void bla(Pt p) { yo; }
    ]],
  );
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031906
Snippet name: test_tok_multiTypeArguments
Eternal ID of this version: #1031906/16
Text MD5: 0938cb09871c2a56904a8ba09e010a75
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-24 23:46:34
Source code size: 1779 bytes / 61 lines
Pitched / IR pitched: No / No
Views / Downloads: 115 / 224
Version history: 15 change(s)
Referenced in: [show references]