Libraryless. Click here for Pure Java version (2821L/17K).
1 | svoid test_getSlashSet() { |
2 | class X { |
3 | S bla; |
4 | } |
5 | |
6 | new X x; |
7 | var getSet = get/set bla(x); |
8 | getSet.set("yo"); |
9 | assertEqualsVerbose("yo", getSet.get()); |
10 | assertEqualsVerbose("yo", x.bla); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031585 |
Snippet name: | test_getSlashSet |
Eternal ID of this version: | #1031585/1 |
Text MD5: | eccdff3f75b1081529fd316300a72974 |
Transpilation MD5: | 410dfe2323779d1faca5a15e840145f7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-22 06:50:54 |
Source code size: | 209 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 155 / 216 |
Referenced in: | [show references] |