New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple inheritance error 34 not being consistently raised #1221

TimLethbridge opened this Issue Feb 8, 2018 · 0 comments


None yet
1 participant

TimLethbridge commented Feb 8, 2018

Error 34 is not being raised in the command line compiler properly for the following code. However, interestingly, it is being raised in UmpleIOnline. The reason for that is that UmpleOnline generates extra 'positioning' code that makes extra class bodies. That makes a difference.

This problem only arises when a class has two isA directives for two parent classes (not allowed), and those two parent classes are specified afterwards.

The solution ought to be to put the analysis of multiple inheritance in the second phase of analysis, after all classes have been processed.

Additionally, even in UmpleOnline, the line number is not being properly pointed out.

class W {
  isA Y;
  isA X;

class  Y{}
class X {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment