# cannot have same signiture but different return types
if (method.methodType!=con.methodType):
raiseException("ERROR: Class '{}' contains 2 methods '{}' with the same signature but different return types".format(self.name,method.name))
# protected must not replace public
if'protected'inmethod.modsand'public'incon.mods:
raiseException("ERROR: Protected method '{}' in class '{}' replaces public method '{}' in class {}".format(method.name,self.name,con.name,inter.name))
conOverwritten=True
break
ifnotconOverwritten:
addToContains.append(con)
# contains += addToContains # this is causing very VERY WEIRD ERRORS I AM VERY FRUSTRATED, DO NOT UNCOMMENT THIS IF YOU WISH TO HAVE A GOOD TIME, UNCOMMENT AT YOUR PERIL