Browse Source

size is compatible to but not same as integer

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7504 8c9fc860-2736-0410-a75d-ab315db34111
felixf 7 years ago
parent
commit
370426cc75
1 changed files with 1 additions and 2 deletions
  1. 1 2
      source/FoxSyntaxTree.Mod

+ 1 - 2
source/FoxSyntaxTree.Mod

@@ -703,7 +703,7 @@ TYPE
 		END InitSizeType;
 
 		PROCEDURE SameType*(this: Type): BOOLEAN;
-		BEGIN	RETURN (this IS SizeType) OR (this IS IntegerType) & (this(IntegerType).signed = TRUE) & (this.sizeInBits = sizeInBits)
+		BEGIN	RETURN (this IS SizeType)
 		END SameType;
 
 		PROCEDURE CompatibleTo*(to: Type): BOOLEAN;
@@ -852,7 +852,6 @@ TYPE
 
 		PROCEDURE SameType*(this: Type): BOOLEAN;
 		BEGIN RETURN (this = SELF) OR (this IS IntegerType) & (this.sizeInBits = sizeInBits) & (this(IntegerType).signed = signed)
-			OR signed & (this IS SizeType) & (this.sizeInBits=sizeInBits)
 		END SameType;
 
 		PROCEDURE CompatibleTo*(to: Type): BOOLEAN;