Explorar o código

Fixed issue incorrectly reporting ctor return types.

Brucey %!s(int64=2) %!d(string=hai) anos
pai
achega
61de7bedd6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

@@ -2088,7 +2088,7 @@ Type TFuncDecl Extends TBlockDecl
 		Local strictVoidToInt:Int = False
 
 		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"
 			End If
 			Local sc:TClassDecl = ClassScope()