Преглед на файлове

Ctors do not return anything.

Brucey преди 5 години
родител
ревизия
99bbb80c36
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      options.bmx
  2. 1 1
      stmt.bmx

+ 1 - 1
options.bmx

@@ -25,7 +25,7 @@ SuperStrict
 
 Import "base.configmap.bmx"
 
-Const version:String = "0.120"
+Const version:String = "0.121"
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1

+ 1 - 1
stmt.bmx

@@ -282,7 +282,7 @@ Type TReturnStmt Extends TStmt
 			expr=expr.SemantAndCast( fRetType  )
 			If TIdentTypeExpr(expr) Err "Function must return a value."
 		Else If fdecl.IsCtor()
-			expr=New TSelfExpr.Semant()
+			' ctors do not return anything
 		Else If Not TVoidType( fRetType  )
 			If _env.ModuleScope().IsSuperStrict() Err "Function must return a value"
 			expr=New TConstExpr.Create( fRetType ,"" ).Semant()