Skip to content

[TypeChecker] Add error message when accessing a type's destructor #5536

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

Merged
merged 1 commit into from
Oct 31, 2016

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 30, 2016

Trying to access a destructor using foo.deinit currently crashes the compiler. This pull requests makes the compiler create error messages instead.

Resolves SR-2652/SR-3043.

Provide error messages when the destructor is accessed using foo.deinit
instead of crashing

This resolves SR-2652 and SR-3043
@ahoppen
Copy link
Member Author

ahoppen commented Oct 30, 2016

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - b0e67da
Test requested by - @ahoppen

@ahoppen
Copy link
Member Author

ahoppen commented Oct 31, 2016

I can't really make sense of the build failure on Linux in llbuild. Could someone help me spot what the issue is? (I don't have a Linux installation locally and all my Mac tests pass). Will run the CI again in the meantime to check if it was just a temporary problem.

@swift-ci please test linux platform

@ahoppen
Copy link
Member Author

ahoppen commented Oct 31, 2016

OK, seems like the Linux test failures were nondeterministic or related to something else

@DougGregor
Copy link
Member

This LGTM, thanks!

@DougGregor DougGregor merged commit c587c69 into swiftlang:master Oct 31, 2016
@ahoppen ahoppen deleted the SR-3043-deinit-reference branch June 26, 2017 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants