Pārlūkot izejas kodu

Include arrays in return type check. Fixes #276.

woollybah 8 gadi atpakaļ
vecāks
revīzija
1cf1ccbc5d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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