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

Fix named slices #244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erikdubbelboer
Copy link
Contributor

When a type is a slice of another type we should use the type name itself and not a slice of the elements of the slice.

Fixes #243

@pquerna
Copy link
Owner

pquerna commented Oct 4, 2018

Can you add a test case for this?

When a type is a slice of another type we should use the type name
itself and not a slice of the elements of the slice.

Fixes pquerna#243
@erikdubbelboer
Copy link
Contributor Author

@pquerna I have added a test. Without my change the test will fail with:

cannot use &[]IntType literal (type *[]IntType) as type *NamedSlice in assignment

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.

2 participants