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

12
LINES

< > BotCompany Repo | #1028773 // test_optOutParam (OK)

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

Libraryless. Click here for Pure Java version (2602L/16K).

1  
svoid test_optOutParam() {
2  
  embedded void bla(int i, O... _) {
3  
    optOutParam(_, out := str(i));
4  
  }
5  
  
6  
  bla(3);
7  
  new Var v;
8  
  bla(5, out := v);
9  
  assertEqualsVerbose("5", v!);
10  
  bla(10, litmapparams(out := v));
11  
  assertEqualsVerbose("10", v!);
12  
}

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: #1028773
Snippet name: test_optOutParam (OK)
Eternal ID of this version: #1028773/4
Text MD5: ff3eec4382edfe8a8de53a31e28790d1
Transpilation MD5: a784d4b1668acb796791f93eb6221bcb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-08 15:30:22
Source code size: 261 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 186 / 282
Version history: 3 change(s)
Referenced in: [show references]