Sfoglia il codice sorgente

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

woollybah 6 anni fa
parent
commit
7dc24ff57c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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