Skip to content

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