diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-30 21:07:48 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-30 21:07:48 +0200 |
| commit | dbca249757a98d6d56e23db43baa93ad30a91709 (patch) | |
| tree | eaf664d63c7752aabad7994f62e92ae6492e655d /testsuite/runnable/procedure_cast.elna | |
| parent | 491e62664394a8689a3f8904fbe8dbc3dea05524 (diff) | |
| download | elna-dbca249757a98d6d56e23db43baa93ad30a91709.tar.gz | |
Use arrow -> for return types
Diffstat (limited to 'testsuite/runnable/procedure_cast.elna')
| -rw-r--r-- | testsuite/runnable/procedure_cast.elna | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/runnable/procedure_cast.elna b/testsuite/runnable/procedure_cast.elna index 27977e1..ee97a6b 100644 --- a/testsuite/runnable/procedure_cast.elna +++ b/testsuite/runnable/procedure_cast.elna @@ -1,9 +1,9 @@ -var cb: proc(x: ^Char): Int +var cb: proc(x: ^Char) -> Int -proc probe_int(x: ^Int): Int +proc probe_int(x: ^Int) -> Int return 42 begin - cb := cast(probe_int: proc(x: ^Char): Int); + cb := cast(probe_int: proc(x: ^Char) -> Int); assert(cb(nil) = 42) end. |
