mirror of
https://github.com/vlang/v.git
synced 2025-09-09 15:27:05 -04:00
This commit is contained in:
parent
729a1cbc9f
commit
16574df99b
@ -2418,6 +2418,11 @@ pub fn (t &Table) dependent_names_in_expr(expr Expr) []string {
|
||||
PrefixExpr {
|
||||
names << t.dependent_names_in_expr(expr.right)
|
||||
}
|
||||
StringInterLiteral {
|
||||
for inter_expr in expr.exprs {
|
||||
names << t.dependent_names_in_expr(inter_expr)
|
||||
}
|
||||
}
|
||||
SelectorExpr {
|
||||
names << t.dependent_names_in_expr(expr.expr)
|
||||
}
|
||||
|
9
vlib/v/tests/const_order_with_str_interp_test.v
Normal file
9
vlib/v/tests/const_order_with_str_interp_test.v
Normal file
@ -0,0 +1,9 @@
|
||||
import os
|
||||
|
||||
const exe_path = os.executable()
|
||||
const exe_old_path = '${exe_path}.old'
|
||||
|
||||
fn test_main() {
|
||||
assert exe_path == os.executable()
|
||||
assert exe_old_path == '${os.executable()}.old'
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user