Libraryless. Click here for Pure Java version (2838L/17K).
1 | svoid test_setGetSyntax() { |
2 | class X { |
3 | S name; |
4 | |
5 | { |
6 | (get/set name).set("hello"); |
7 | assertEqualsVerbose(name, "hello"); |
8 | assertEqualsVerbose("hello", (get/set name)!); |
9 | } |
10 | } |
11 | |
12 | new X x; |
13 | get/set name(x).set("world"); |
14 | assertEqualsVerbose(x.name, "world"); |
15 | assertEqualsVerbose("world", get/set name(x)!); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031776 |
Snippet name: | test_setGetSyntax (OK) |
Eternal ID of this version: | #1031776/4 |
Text MD5: | 54bbaa376a8f00d600cad08fa57c5cdd |
Transpilation MD5: | b603d4bd56cd73f0354172a8ecbf683d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 17:25:30 |
Source code size: | 355 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 150 / 240 |
Version history: | 3 change(s) |
Referenced in: | [show references] |