fmt: fix fmt of Ok<[]Token>{[]} (#14522)
parent
3bc50721e2
commit
b97a04abd9
|
@ -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