Selaa lähdekoodia

Fixed issue incorrectly reporting ctor return types.

Brucey 2 vuotta sitten
vanhempi
commit
61de7bedd6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

@@ -2088,7 +2088,7 @@ Type TFuncDecl Extends TBlockDecl
 		Local strictVoidToInt:Int = False
 		Local strictVoidToInt:Int = False
 
 
 		If isCtor() Or isDtor() Then
 		If isCtor() Or isDtor() Then
-			If retTypeExpr And Not TVoidType(retTypeExpr) Then
+			If retTypeExpr And Not TVoidType(retTypeExpr) And Not generated Then
 				Err ident + "() cannot specify a return type"
 				Err ident + "() cannot specify a return type"
 			End If
 			End If
 			Local sc:TClassDecl = ClassScope()
 			Local sc:TClassDecl = ClassScope()