Skip to content

Commit

Permalink
Merge pull request #48 from xtuml/lps-kafka5
Browse files Browse the repository at this point in the history
fix merge conflict in BasicType
  • Loading branch information
cortlandstarrett authored Apr 16, 2024
2 parents 40fc4d9 + bdda7d6 commit 96948e3
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,25 @@ public final boolean isAssignableFrom(final Expression rhs, final boolean allowS
return isAssignableFrom(rhs,allowSeqPromote,true);
}


public final boolean isAssignableFrom(final Expression rhs, final boolean allowSeqPromote, boolean allowRelaxed) {
return isAssignableFrom(rhs.resolve(this, allowSeqPromote).getType(),allowRelaxed);
}

@Override
public final boolean isAssignableFrom(final org.xtuml.masl.metamodel.type.BasicType type) {
if (type instanceof org.xtuml.masl.metamodel.type.BasicType) {
final BasicType rhs = (BasicType) type;
if (isAnonymousType() || rhs.isAnonymousType()) {
return getPrimitiveType().isAssignableFromInner(rhs.getPrimitiveType());
} else {
return isAssignableFromInner(rhs);
}
public final boolean isAssignableFrom(final BasicType rhs, boolean allowRelaxed) {
if (isAnonymousType() || rhs.isAnonymousType()) {
return getPrimitiveType().isAssignableFromInner(rhs.getPrimitiveType(), allowRelaxed);
} else {
return false;
return isAssignableFromInner(rhs,allowRelaxed);
}
}

public final boolean isAssignableFrom(final BasicType rhs) {
return isAssignableFrom(rhs,true);
@Override
public final boolean isAssignableFrom(final org.xtuml.masl.metamodel.type.BasicType rhs) {
if (rhs instanceof BasicType) {
return isAssignableFrom((BasicType) rhs,true);
} else {
return false;
}
}

private final boolean isAssignableFromInner(final BasicType rhs, boolean allowRelaxed) {
Expand Down

0 comments on commit 96948e3

Please sign in to comment.