提交 cd33d191 编写于 作者: 3 3dgen

Todo: 闭包的类型信息

上级 4d6d71c7
......@@ -487,6 +487,10 @@ func (m *Module) buildTypeInfo(t ValueType) int {
m.DataSeg.Set(_ref.Bin(), typ.addr)
return typ.addr
case *Closure:
typ.addr = m.DataSeg.Append(_type.Bin(), 8)
return typ.addr
case *Struct:
_struct := NewConst("0", m.types_map["runtime._structType"]).(*aStruct)
_structField := NewConst("0", m.types_map["runtime._structField"]).(*aStruct)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册