mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
fix
This commit is contained in:
parent
a035c162d8
commit
bb6d410881
1 changed files with 1 additions and 1 deletions
|
@ -1617,7 +1617,7 @@ pub fn (t &Table) type_to_str_using_aliases(typ Type, import_aliases map[string]
|
|||
if nr_muls > 0 && !typ.has_flag(.variadic) {
|
||||
res = strings.repeat(`&`, nr_muls) + res
|
||||
}
|
||||
if typ.has_flag(.option) {
|
||||
if typ.has_flag(.option) && res[0] != `?` {
|
||||
res = '?${res}'
|
||||
}
|
||||
if typ.has_flag(.result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue