mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
Allow variables without initializers.
This commit is contained in:
2
test/variable/global_without_initializer.wren
Normal file
2
test/variable/global_without_initializer.wren
Normal file
@ -0,0 +1,2 @@
|
||||
var a
|
||||
IO.write(a) // expect: null
|
||||
4
test/variable/local_without_initializer.wren
Normal file
4
test/variable/local_without_initializer.wren
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
var a
|
||||
IO.write(a) // expect: null
|
||||
}
|
||||
Reference in New Issue
Block a user