Skip to content

Commit 03c17d4

Browse files
committed
fixes
1 parent 2432f31 commit 03c17d4

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

types_declaration.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
package gotype
22

33
func newDeclaration(name string, typ Type) Type {
4-
v, ok := typ.(*typeDeclaration)
5-
if ok {
6-
return &typeDeclaration{
7-
name: name,
8-
declaration: v.declaration,
9-
}
10-
}
114
return &typeDeclaration{
12-
name: name,
5+
name: name,
136
declaration: typ,
147
}
158
}
169

1710
type typeDeclaration struct {
1811
typeBase
1912
declaration Type
20-
name string
13+
name string
2114
}
2215

2316
func (t *typeDeclaration) String() string {

0 commit comments

Comments
 (0)