Skip to content
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

No warning for invalid inherited slot #763

Open
cgay opened this issue May 26, 2014 · 1 comment
Open

No warning for invalid inherited slot #763

cgay opened this issue May 26, 2014 · 1 comment

Comments

@cgay
Copy link
Member

cgay commented May 26, 2014

This should produce a warning like "Invalid inherited slot specification: the foo slot is not inherited from any superclass", but it doesn't.

define class <base> (<object>) end;
define class <sub> (<base>)
  inherited slot foo = bar;
end;

Note that if you're lucky enough, foo will not be otherwise defined and you'll get an undefined binding warning, but if foo is bound you'll get no warning at all.

I noticed this because I accidentally put two inherited slot definitions in the wrong class and got no warning.

@waywardmonkeys
Copy link
Member

This should probably be checked in ^check-slot-inheritance in sources/dfmc/conversion/define-class-mop.dylan.

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

No branches or pull requests

2 participants