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

15 lines
152 B
V
Raw Normal View History

2019-10-24 12:19:05 +03:00
pub const (
// c = a // TODO
a = b
b = 1
)
2019-10-24 12:19:05 +03:00
struct Foo {
}
fn test_const() {
assert a == 1
// assert c == 1 // TODO: This will not build yet
2019-10-24 12:19:05 +03:00
}