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

20
LINES

< > BotCompany Repo | #1032612 // test_tok_shortLambdas

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

Transpiled version (4877L) is out of date.

svoid test_tok_shortLambdas() {
  testTranspilationFunction tok_shortLambdas(
    "bla(-> blubb)",
    "bla(() -> blubb)",
    "IF0 f = -> yo;",
    "IF0 f = () -> yo;",
    "IF1 f = a -> b;",
    "IF1 f = a -> b;",
    "IF2 f = (a, x) -> b;",
    "IF2 f = (a, x) -> b;",
    "f(a, -> x);",
    "f(a, () -> x);",
    "return -> x;",
    "return () -> x;",
    "ret a -> -> x;",
    "ret a -> () -> x;",
    "-> .x()",
    "\*anonVar(1)*/ -> \*anonVar(1)*/.x()",
  );
}

Author comment

Began life as a copy of #1032260

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032612
Snippet name: test_tok_shortLambdas
Eternal ID of this version: #1032612/9
Text MD5: 012f2d33179d9343fc2b7f6f992bf0e0
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-26 22:48:38
Source code size: 487 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 46 / 122
Version history: 8 change(s)
Referenced in: [show references]