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

Remove Type::Array variant #62

Merged
merged 2 commits into from
Jul 25, 2016
Merged

Conversation

brendanzab
Copy link
Member

Working towards #50

@brendanzab brendanzab changed the title Remove Type::Array Remove Type::Array variant Jul 23, 2016
@brendanzab
Copy link
Member Author

Bump!

@Marwes
Copy link
Member

Marwes commented Jul 24, 2016

For some reason I thought you weren't done since it was so tiny compared to the previous removals!

Looks good, merge if it is indeed done!

@Marwes
Copy link
Member

Marwes commented Jul 24, 2016

Oops, sec noticed a mistake.

@@ -139,14 +139,9 @@ impl<'a> KindCheck<'a> {
Ok((gen.kind.clone(), Type::generic(gen)))
}
Type::Variable(_) => panic!("kindcheck called on variable"),
Type::Builtin(BuiltinType::Array) |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array and function do not have the same kind (Type -> Type vs Type -> Type -> Type). If you can add a test to catch this as well that would be great!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, durp

@brendanzab
Copy link
Member Author

Fixed the array kind issue, but still need to do some tests. Should there be a separate kindcheck test module?

@Marwes
Copy link
Member

Marwes commented Jul 24, 2016

There probably should be a separate kind check module. Currently the tests are just dumped into a single file (did split them into pass and fail in #61 though)

@brendanzab
Copy link
Member Author

brendanzab commented Jul 24, 2016

arrrg skeptic arrg! (rebuilding)

@Marwes
Copy link
Member

Marwes commented Jul 24, 2016

It might be that travis_wait is messing it up, gonna run some builds on travis in #66

@Marwes
Copy link
Member

Marwes commented Jul 25, 2016

@bjz Should this be merged? Or are you working on adding a kindcheck test?

@brendanzab
Copy link
Member Author

Yeah - would be nice to merge it - won't have much time to do stuff on gluon this week. Maybe we should make an issue to add a test...

@Marwes
Copy link
Member

Marwes commented Jul 25, 2016

Ok, I think its fine to merge it. Opening an issue for adding kindcheck tests would be a good idea.

@Marwes Marwes merged commit 1b4f74a into gluon-lang:master Jul 25, 2016
@brendanzab brendanzab mentioned this pull request Jul 25, 2016
@brendanzab brendanzab deleted the remove_type_array branch July 25, 2016 15:54
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