2
0
Эх сурвалжийг харах

Fixed new decl copy issue.

woollybah 8 жил өмнө
parent
commit
67ce93a138
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

@@ -2026,7 +2026,7 @@ Type TNewDecl Extends TFuncDecl
 		Local t:TNewDecl = TNewDecl(New TNewDecl.CreateF( ident,retType,args,attrs &~DECL_SEMANTED ))
 		If deep Then
 			For Local stmt:TStmt=EachIn stmts
-				t.AddStmt stmt.Copy( t )
+				t.AddStmt stmt.Copy(Null)
 			Next
 		End If
 		t.retType = retType