소스 검색

Include arrays in return type check. Fixes #276.

woollybah 8 년 전
부모
커밋
1cf1ccbc5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

@@ -1877,7 +1877,7 @@ Type TFuncDecl Extends TBlockDecl
 							
 							End If
 						
-							If TObjectType(retType) And TObjectType(decl.retType ) Then
+							If (TObjectType(retType) And TObjectType(decl.retType )) Or (TArrayType(retType) And TArrayType(decl.retType)) Then
 								If Not retType.EqualsType( decl.retType ) And retType.ExtendsType( decl.retType ) Then
 									returnTypeSubclassed = True
 								End If