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

why can't default members be forward-declared #1379

Open
gavinking opened this issue Jul 9, 2015 · 2 comments
Open

why can't default members be forward-declared #1379

gavinking opened this issue Jul 9, 2015 · 2 comments
Assignees
Milestone

Comments

@gavinking
Copy link
Member

The spec says that default attributes and functions can't be forward-declared, and the typechecker enforces that, but for the life of me I don't remember why. It doesn't seem like a reasonable restriction.

@gavinking gavinking self-assigned this Jul 9, 2015
@gavinking gavinking added this to the 1.2 milestone Jul 9, 2015
gavinking added a commit that referenced this issue Jul 9, 2015
fix a bug in detection of start of declaration section
@gavinking
Copy link
Member Author

I have pushed a commit that relaxes the restriction. But is there some reason we need it?

@gavinking
Copy link
Member Author

But is there some reason we need it?

Yes: see #1413.

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

1 participant