【修复】修复proto 生成typescript反序列化多态bean代码的编译bug

main
walon 2021-07-12 16:12:13 +08:00
parent c2b770a33b
commit 3549603dcc
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export {{if x.is_abstract_type}} abstract {{end}} class {{name}} extends {{if pa
switch (_buf_.ReadInt()) { switch (_buf_.ReadInt()) {
case 0 : return null case 0 : return null
{{~ for child in x.hierarchy_not_abstract_children~}} {{~ 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~}} {{~end~}}
default: throw new Error() default: throw new Error()
} }