فهرست منبع

Duplicates should be equal. Fixes #372.

woollybah 6 سال پیش
والد
کامیت
c2a7e6c7ec
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

@@ -2057,7 +2057,7 @@ Type TFuncDecl Extends TBlockDecl
 		'check for duplicate decl
 		'check for duplicate decl
 		If ident Then
 		If ident Then
 			For Local decl:TFuncDecl=EachIn scope.SemantedFuncs( ident )
 			For Local decl:TFuncDecl=EachIn scope.SemantedFuncs( ident )
-				If decl<>Self And EqualsArgs( decl ) And Not decl.IsCTOR()
+				If decl<>Self And EqualsArgs( decl, True ) And Not decl.IsCTOR()
 					Err "Duplicate declaration "+ToString()
 					Err "Duplicate declaration "+ToString()
 				EndIf
 				EndIf
 				If noMangle Then
 				If noMangle Then