fix fmt2 test
parent
e3713de41d
commit
3ef6436bef
|
@ -788,12 +788,6 @@ pub fn (c mut Checker) expr(node ast.Expr) table.Type {
|
|||
it.expr_type = c.expr(it.expr)
|
||||
return table.string_type
|
||||
}
|
||||
/*
|
||||
ast.UnaryExpr {
|
||||
c.expr(it.left)
|
||||
}
|
||||
*/
|
||||
|
||||
else {}
|
||||
// println('checker.expr(): unhandled node')
|
||||
// TODO: find nil string bug triggered with typeof
|
||||
|
|
|
@ -8,6 +8,8 @@ fn main() {
|
|||
c := 'a: $a b: $b i: $i'
|
||||
d := 'a: ${a:5s} b: ${b:-5s} i: ${i:20d}'
|
||||
println('a: $a $b xxx')
|
||||
eprintln('c: $c')
|
||||
// QTODO
|
||||
//eprintln('c: $c')
|
||||
eprintln('c: $c .')
|
||||
println(d)
|
||||
}
|
||||
|
|
|
@ -604,6 +604,7 @@ pub fn (p mut Parser) name_expr() ast.Expr {
|
|||
}
|
||||
// Raw string (`s := r'hello \n ')
|
||||
if p.tok.lit in ['r', 'c'] && p.peek_tok.kind == .string {
|
||||
// QTODO
|
||||
// && p.prev_tok.kind != .str_dollar {
|
||||
return p.string_expr()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue