Transpiled version (30440L) is out of date.
please include function plus. svoid test_lasTypeSpecialization() { new GazelleV_LeftArrowScriptParser parser; parser.allowTheWorld(); parser.addVar("i", new LASValueDescriptor.Exact(int.class, false)); var script = parser.parse("plus i i"); printIndentedStruct(script); var step = first(script.steps); print(returnType := step.returnType()); var opt = step.optimize(); print(optimized := opt); assertInstanceOf(opt, GazelleV_LeftArrowScript.DirectMethodCallOnKnownTarget.class); print(returnType := opt.returnType()); new FlexibleVarContext ctx; ctx.put(i := 5); assertEqualsVerbose(10, opt.get(ctx)); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034321 |
Snippet name: | test_lasTypeSpecialization |
Eternal ID of this version: | #1034321/2 |
Text MD5: | b6d40b795b227cac7c94139246bfbfd6 |
Author: | stefan |
Category: | javax / left arrow script |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-28 22:46:53 |
Source code size: | 653 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 130 / 201 |
Version history: | 1 change(s) |
Referenced in: | [show references] |