diff options
| author | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
|---|---|---|
| committer | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
| commit | ebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (patch) | |
| tree | 71b952ad455bf17d5bdea01472f0e2297f25eabe /tests/features/test_default_args.zc | |
| parent | 863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff) | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
Merge branch 'main' into pr-109
Diffstat (limited to 'tests/features/test_default_args.zc')
| -rw-r--r-- | tests/features/test_default_args.zc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/features/test_default_args.zc b/tests/features/test_default_args.zc index cbeba83..6e98813 100644 --- a/tests/features/test_default_args.zc +++ b/tests/features/test_default_args.zc @@ -16,16 +16,16 @@ fn operation(a: int, b: int = 5 * 2) -> int { } fn main() { - var p1 = Point { x: 5, y: 5 }; - var res1 = add_points(p1); + let p1 = Point { x: 5, y: 5 }; + let res1 = add_points(p1); println "res1.x: {res1.x}, res1.y: {res1.y}"; assert(res1.x == 15, "result is not 15"); assert(res1.y == 15, "result is not 15"); - var p2 = Point { x: 1, y: 1 }; - var p3 = Point { x: 5, y: 5 }; - var res2 = add_points(p3, p2); + let p2 = Point { x: 1, y: 1 }; + let p3 = Point { x: 5, y: 5 }; + let res2 = add_points(p3, p2); println "res2.x: {res2.x}, res2.y: {res2.y}"; assert(res2.x == 6, "result is not 6"); |
