Skip to content

Commit

Permalink
test: Variable declaration (let)
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 8, 2024
1 parent facde75 commit 1383b93
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions test/corpus/let.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
===
Variable declaration (let)
===

let x = "Hello world!"
let x: int = 420

---

(source_file
(statement
(var_decl
name: (identifier)
initial: (expression
(literal
(string)
)
)
)
)
(statement
(var_decl
name: (identifier)
type: (type
(type_name
(identifier
(primitive_type)
)
)
)
initial: (expression
(literal
(number)
)
)
)
)
)

0 comments on commit 1383b93

Please sign in to comment.