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

compiler: public consts and structs

This commit is contained in:
Alexander Medvednikov
2019-10-24 12:19:05 +03:00
parent 71d965b6a2
commit 1c564bc118
4 changed files with 39 additions and 25 deletions

View File

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