diff options
Diffstat (limited to 'tests/features/test_unions.zc')
| -rw-r--r-- | tests/features/test_unions.zc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/features/test_unions.zc b/tests/features/test_unions.zc index ee9848b..11ee1a6 100644 --- a/tests/features/test_unions.zc +++ b/tests/features/test_unions.zc @@ -14,11 +14,11 @@ union Shape { } test "union_init" { - var c = Circle{ radius: 10.0 }; - var s = Shape{ circle: c }; + let c = Circle{ radius: 10.0 }; + let s = Shape{ circle: c }; assert(s.circle.radius == 10.0, "s.circle.radius != 10.0"); - var s2 = Shape{}; + let s2 = Shape{}; s2.rect = Rect{ width: 5.0, height: 5.0 }; assert(s2.rect.width == 5.0, "s2.rect.width != 5.0"); } |
