瀏覽代碼

Fixed generics build issues.

woollybah 8 年之前
父節點
當前提交
ef6ecf06a4
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      decl.bmx
  2. 1 1
      iparser.bmx

+ 1 - 1
decl.bmx

@@ -2064,7 +2064,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(Null)
+				t.AddStmt stmt.Copy(t)
 			Next
 		End If
 		t.retType = retType

+ 1 - 1
iparser.bmx

@@ -378,7 +378,7 @@ Type TIParser
 									class.templateSource = TTemplateRecord.Load(line, path, size, source)
 
 									Local toker:TToker = New TToker.Create(path, class.templateSource.source, False, line)
-									Local parser:TParser = New TParser.Create( toker, Null )
+									Local parser:TParser = New TParser.Create( toker, _appInstance )
 									
 									Local m:TModuleDecl = New TModuleDecl
 									parser._module = m