X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftypes%2FTVar.java;h=df342dd5fb2e9074e9da1e3a3b3c9a76a6ff80a7;hp=aeb9711453800ff1fce03878743880e613092d9b;hb=a8758de5bc19e5adb3f618d3038743a164f09912;hpb=12d9af17384d960b75d58c3935d2b7b46d93e87b diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/types/TVar.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/types/TVar.java index aeb971145..df342dd5f 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/types/TVar.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/types/TVar.java @@ -59,11 +59,6 @@ public final class TVar extends Type { return this == obj; } - @Override - public int hashCode() { - return System.identityHashCode(this); - } - @Override public void updateHashCode(TypeHashCodeContext context) { TObjectIntHashMap varHashCode = context.getVarHashCode(); @@ -141,6 +136,11 @@ public final class TVar extends Type { return this; } + @Override + public int hashCode() { + return System.identityHashCode(this); + } + @Override public int hashCode(int hash) { return HashCodeUtils.update(hash, System.identityHashCode(this)); @@ -156,6 +156,26 @@ public final class TVar extends Type { return HashCodeUtils.update(hash, System.identityHashCode(this)); } + @Override + public int skeletonHashCode() { + return System.identityHashCode(this); + } + + @Override + public int skeletonHashCode(int hash) { + return HashCodeUtils.update(hash, System.identityHashCode(this)); + } + + @Override + public int skeletonHashCode(int hash, TVar[] boundVars) { + for(int i=0;i