【修复】修复proto 生成typescript反序列化多态bean代码的编译bug
parent
c2b770a33b
commit
3549603dcc
|
|
@ -71,7 +71,7 @@ export {{if x.is_abstract_type}} abstract {{end}} class {{name}} extends {{if pa
|
|||
switch (_buf_.ReadInt()) {
|
||||
case 0 : return null
|
||||
{{~ for child in x.hierarchy_not_abstract_children~}}
|
||||
case {{child.id}}: _bean_ = new {{child.full_name}}(_buf_); break
|
||||
case {{child.id}}: _bean_ = new {{child.full_name}}(); break
|
||||
{{~end~}}
|
||||
default: throw new Error()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue