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 2432f31 commit 03c17d4Copy full SHA for 03c17d4
types_declaration.go
@@ -1,23 +1,16 @@
1
package gotype
2
3
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
11
return &typeDeclaration{
12
+ name: name,
13
declaration: typ,
14
}
15
16
17
type typeDeclaration struct {
18
typeBase
19
declaration Type
20
- name string
+ name string
21
22
23
func (t *typeDeclaration) String() string {
0 commit comments