浏览代码

[python] do not assert when abstracts are caught

Simon Krajewski 10 年之前
父节点
当前提交
e33d891610
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      genpy.ml

+ 2 - 0
genpy.ml

@@ -1417,6 +1417,8 @@ module Printer = struct
 					handle_base_type (t_infos (TClassDecl c))
 				| TEnum(en,_) ->
 					handle_base_type (t_infos (TEnumDecl en))
+				| TAbstract(a,_) ->
+					handle_base_type (t_infos (TAbstractDecl a))
 				| _ ->
 					assert false
 		in