浏览代码

Fixed generation of ctor in iface for structs. Fixes #429.

woollybah 6 年之前
父节点
当前提交
7dc24ff57c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ctranslator.bmx

+ 1 - 1
ctranslator.bmx

@@ -5306,7 +5306,7 @@ End Rem
 		
 			If Not classDecl.templateSource Then
 
-				If Not (classDecl.attrs & CLASS_INTERFACE) Then
+				If Not (classDecl.attrs & CLASS_INTERFACE) And Not classDecl.IsStruct() Then
 					Emit "-New()=" + Enquote("_" + classDecl.munged + "_New")
 				End If