Skip to content

Conversation

@gvanrossum
Copy link
Member

@gvanrossum
Copy link
Member Author

Would be nice to have a repro. I'm not sure if I have the patience for that though. I'm kind of waiting for this yak to be shaved.

@gvanrossum gvanrossum merged commit fc94151 into master Oct 26, 2016
@gvanrossum gvanrossum deleted the ivan-crash branch October 26, 2016 01:47
@ilevkivskyi
Copy link
Member

@gvanrossum
I found a very simple repro for this bug:

type[int]

This fails with same traceback as your original one and complains: 'Overloaded' object has no attribute 'variables'

Your fix indeed fixes this. Probably, it would be even better to add also a test for Overloaded (there is special method to deal with generic overloads in checkexpr that applies types or reports an error).

See PR #2335 for a test and extended fix.

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