Fix for an issue that was observed only with IDE integration (false positive DuplicateFunctionDefinition problem)
diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ClassDirectiveProcessor.java b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ClassDirectiveProcessor.java
index 2f45c11..281a973 100644
--- a/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ClassDirectiveProcessor.java
+++ b/compiler/src/main/java/org/apache/royale/compiler/internal/as/codegen/ClassDirectiveProcessor.java
@@ -1006,6 +1006,13 @@
for (int i=0;i< others.getSize(); i++) {
IDefinition other = others.getDefinition(i);
if (other == func) continue;
+ //ignore code-gen Bindable setters if we are checking against the original setter
+ if ((func instanceof SyntheticBindableSetterDefinition && other instanceof ISetterDefinition)
+ || (other instanceof SyntheticBindableSetterDefinition && func instanceof ISetterDefinition)
+ && (func.getNode().equals(other.getNode()))
+ ) {
+ continue;
+ }
if (other.getNamespaceReference().isLanguageNamespace()) {
if (!SemanticUtils.isGetterSetterPair(func, other, classScope.getProject())) {
boolean issueProblem = true;