Skip to content

Commit

Permalink
feat(test): for variables, #433 (#553)
Browse files Browse the repository at this point in the history
* feat(test): for variables, #433

* feat(test): variables

* Update src/tests/validity/variable_ref_operators.ab

Co-authored-by: Phoenix Himself <[email protected]>

* feat(tests): review

* feat(tests): review

* feat(tests): review

* feat(tests): review

* feat(test): removing as we already have

---------

Co-authored-by: Phoenix Himself <[email protected]>
  • Loading branch information
Mte90 and Ph0enixKM authored Nov 6, 2024
1 parent 9fe0f18 commit d87e0c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tests/validity/variable_function_global_context.ab
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fun set() {
let var = "abc"
}
set()
let var = "Succeeded"

echo var
4 changes: 4 additions & 0 deletions src/tests/validity/variable_redefinition.ab
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let var = "abc"
let var = "Succeeded"

echo var

0 comments on commit d87e0c0

Please sign in to comment.