Uses 679K of libraries. Click here for Pure Java version (37773L/186K).
1 | !include once #1034831 // Gazelle 22 Function Include for Testing |
2 | |
3 | // function definition with checked argument type |
4 | svoid test_leftArrowScript_defChecked() {
|
5 | S script = [[ |
6 | def doubleString s: checked S {
|
7 | Math concat s s |
8 | } |
9 | |
10 | assertFails < doubleString 5 |
11 | doubleString "1" |
12 | ]]; |
13 | |
14 | assertEqualsVerbose("11", leftArrowVerbose(script));
|
15 | } |
Began life as a copy of #1037254
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1038780 |
| Snippet name: | test_leftArrowScript_defChecked |
| Eternal ID of this version: | #1038780/1 |
| Text MD5: | c7d3342acd5b2711615a4218c37924f6 |
| Transpilation MD5: | 0f992cc2fdf685279ef7348d375f5c57 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2025-06-02 23:54:56 |
| Source code size: | 385 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 2622 / 2900 |
| Referenced in: | [show references] |