Przeglądaj źródła

Include arrays in return type check. Fixes #276.

woollybah 8 lat temu
rodzic
commit
1cf1ccbc5d
1 zmienionych plików z 1 dodań i 1 usunięć
  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