diff options
| author | 2022-08-08 09:16:13 +0200 | |
|---|---|---|
| committer | 2022-08-08 09:16:13 +0200 | |
| commit | f8a8add7d0e74d20304b3194e836752a9986ddc3 (patch) | |
| tree | d4c72f796c9b97c229f299b1632c6a5c9ffc3e37 /bootstrap/test2.cff | |
| parent | 0a57a8979a75ce5398b34817c86a55c6d0552bca (diff) | |
direct access of eunion fields
Diffstat (limited to 'bootstrap/test2.cff')
| -rw-r--r-- | bootstrap/test2.cff | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap/test2.cff b/bootstrap/test2.cff index fdb30cb..ec5fcb0 100644 --- a/bootstrap/test2.cff +++ b/bootstrap/test2.cff @@ -36,15 +36,15 @@ extern fn main() void { let x int #?; x = X + 1 + Y; - let v= Value:None; - v = :Int 3; + let const v= Value:None; switch (v) { case None; case Int i; i; case Flo *f; - *f += 1.0f; } + let t = v.#tag; + let i = v.Int; #:outer for let i = 0; i++ < 10; { printf("%d\n", i); |