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

Attempts to redefine generalization in separate class definition blocks for the same class not flagged with error #1181

Closed
TimLethbridge opened this Issue Dec 13, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@TimLethbridge
Member

TimLethbridge commented Dec 13, 2017

In the following code error 34 should be raised, flagging an attempt at multiple inheritance.

class A {}
class B {}

class C {
  isA A;
}

class C {
  isA B;
}

However the erro is generated if the definition just occurs in one block

class A {}
class B {}

class C {
  isA A;
  isA B;
}

This is an issue since somebody could make this mistake accidentally and not notice that only the last encountered generalization takes effect.

@daniel-mitchell daniel-mitchell added this to the April 2018 for release 1.28 milestone Jan 20, 2018

@daniel-mitchell daniel-mitchell self-assigned this Jan 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment