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

all: fixes related to Node.pos (#9613)

This commit is contained in:
Lukas Neubert
2021-04-06 15:16:19 +02:00
committed by GitHub
parent 87a16bbfe9
commit a0648a3ec2
6 changed files with 47 additions and 8 deletions

View File

@ -74,3 +74,25 @@ fn between_orm_blocks() {
select from Upper where id == 1
}
}
fn no_empty_lines() {
_ := $embed_file('testy.v')
mut files := map[string][]FileData{}
code := 'foo
bar'
params[0] = {
...params[0]
typ: params[0].typ.set_nr_muls(1)
}
env_value = environ()[env_lit] or {
return error('the environment variable "$env_lit" does not exist.')
}
assert '$mr_one_two()' == "(One{
value: 'one'
}, Two{
value: 'two'
})"
r := m[key] ?
compile_time_env := $env('ENV_VAR')
func()
}