Quellcode durchsuchen

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

woollybah vor 6 Jahren
Ursprung
Commit
7dc24ff57c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      ctranslator.bmx

+ 1 - 1
ctranslator.bmx

@@ -5306,7 +5306,7 @@ End Rem
 		
 		
 			If Not classDecl.templateSource Then
 			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")
 					Emit "-New()=" + Enquote("_" + classDecl.munged + "_New")
 				End If
 				End If