Transpiled version (5556L) is out of date.
set flag typeConversionScore_debug. scope test_newPreciseCall interface #Inti { default int x() { ret 5; } } svoid test_newPreciseCall() { class X { long x(long x) { ret x+1; } long y(long x) { ret x+1; } long y(int x) { ret x+2; } } set newPreciseCall_debug; assertEqualsVerbose(6L, newPreciseCall(new X, "x", 5)); assertEqualsVerbose(2L, newPreciseCall(new X, "x", 1L)); assertEqualsVerbose(7L, newPreciseCall(new X, "y", 5)); assertEqualsVerbose(2L, newPreciseCall(new X, "y", 1L)); please include function str. assertEqualsVerbose("1.0", newPreciseCall(mainFunctionHolder str, "str", 1.0)); please include function plus. assertEqualsVerbose(3, newPreciseCall(mainFunctionHolder plus, "plus", 1, 2)); please include function ll. assertEqualsVerbose(ll(1, 2), newPreciseCall(mainFunctionHolder ll, "ll", 1, 2)); // Test calling a default method class Y is Inti {} assertEqualsVerbose(5, newPreciseCall(new Y, "x")); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034744 | 
| Snippet name: | test_newPreciseCall (OK) | 
| Eternal ID of this version: | #1034744/14 | 
| Text MD5: | 87befd20b138b777d111cca600b9ef0f | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-03-16 18:23:35 | 
| Source code size: | 1020 bytes / 34 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 382 / 569 | 
| Version history: | 13 change(s) | 
| Referenced in: | [show references] |