Skip to content

Commit e9fafc9

Browse files
committed
udpate opTypeOf spec
1 parent 875b522 commit e9fafc9

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

lib/types.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,9 @@ func opTypeOf(cdr []*core.YispNode, env *core.Env, mode core.EvalMode, e core.En
6161

6262
node := cdr[0]
6363

64-
if node.Type == nil {
65-
return &core.YispNode{
66-
Kind: core.KindNull,
67-
Value: nil,
68-
Attr: node.Attr,
69-
}, nil
70-
}
71-
7264
return &core.YispNode{
73-
Kind: core.KindType,
74-
Value: node.Type,
65+
Kind: core.KindString,
66+
Value: node.Kind.String(),
7567
Attr: node.Attr,
7668
}, nil
7769
}

0 commit comments

Comments
 (0)