fmt: fix fmt of Ok<[]Token>{[]} (#14522)
parent
dd8c96f6bc
commit
59e57f0c62
|
@ -249,7 +249,7 @@ pub fn (mut f Fmt) short_module(name string) string {
|
|||
}
|
||||
}
|
||||
if aname == '' {
|
||||
return symname
|
||||
return '$tprefix$symname'
|
||||
}
|
||||
return '$tprefix${aname}.$symname'
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
module x
|
||||
|
||||
struct Ok<T> {
|
||||
foo []T
|
||||
}
|
||||
|
||||
fn test_fmt() {
|
||||
r := Ok<[]Token>{[]}
|
||||
}
|
Loading…
Reference in New Issue