We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173ec87 commit 56cc49bCopy full SHA for 56cc49b
types_func.go
@@ -1,6 +1,8 @@
1
package gotype
2
3
-import "bytes"
+import (
4
+ "bytes"
5
+)
6
7
type typeFunc struct {
8
typeBase
@@ -16,18 +18,10 @@ func (t *typeFunc) String() string {
16
18
if i != 0 {
17
19
buf.WriteString(", ")
20
}
- if t.variadic && i+1 == len(t.results) {
- if d, ok := v.(*typeDeclaration); ok {
21
- if d0, ok := d.declaration.(*typeSlice); ok {
22
- buf.WriteString(d.name)
23
- buf.WriteString(" ...")
24
- buf.WriteString(d0.elem.String())
25
- continue
26
- }
27
28
29
buf.WriteString(v.String())
30
-
+ }
+ if t.variadic {
+ buf.WriteString("...")
31
32
buf.WriteString(") (")
33
0 commit comments