1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

const declarations should be order independent

This commit is contained in:
Toby Webb
2019-10-21 07:57:29 +02:00
committed by Alexander Medvednikov
parent 2829298de7
commit dfc654f84e
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const (
// c = a // TODO
a = b
b = 1
)
fn test_const() {
assert a == 1
// assert c == 1 // TODO: This will not build yet
}