You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2019/06/11 22:43:59 UTC
[royale-compiler] branch develop updated: better vector detection
for previous commit
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 8999ac8 better vector detection for previous commit
8999ac8 is described below
commit 8999ac8307f73170f81b657540b2074562f73eb1
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Tue Jun 11 15:43:51 2019 -0700
better vector detection for previous commit
---
.../royale/compiler/internal/semantics/MethodBodySemanticChecker.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java b/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java
index f8fb122..610da6d 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/semantics/MethodBodySemanticChecker.java
@@ -2568,13 +2568,13 @@ public class MethodBodySemanticChecker
ExpressionNodeBase typeNode = var.getTypeNode();
IExpressionNode currentTypeNode = typeNode;
+ IDefinition vectorType = project.getBuiltinType(IASLanguageConstants.BuiltinType.VECTOR);
while (currentTypeNode instanceof ITypedExpressionNode)
{
ITypedExpressionNode typedNode = (ITypedExpressionNode) currentTypeNode;
IExpressionNode collectionNode = typedNode.getCollectionNode();
IDefinition collectionType = collectionNode.resolve(project);
- if (collectionType != null
- && !collectionType.getQualifiedName().equals(IASLanguageConstants.Vector_qname))
+ if (!vectorType.equals(collectionType))
{
currentScope.addProblem(new TypeParametersWithNonParameterizedTypeProblem(collectionNode));
}