Open RobbieMcKinstry opened 8 years ago
I'm going to take this one over the next day or so.
The process for this guy is going to be awfully similar to https://github.com/wyvernlang/wyvern/issues/38
Looks like Booleans don't type check in the IL yet. That might be a prereq to this story. I'm going to write a test to see if that's true.
Confirmed. Simple bools fail. I'm going to look at that in more detail.
Added some tests about this here. @JonathanAldrich is going to work on design of booleans, perhaps as a library.
Update: I believe interop works for bools now (can't point to a test, would be nice to pinpoint one, but I think the functionality was exercised at some point). However, Rationals have not really been designed or implemented.
This issue will require the creation of tests, as well as the supporting compiler logic, to allow Wyvern rationals and booleans can be interoperated with Java booleans and doubles.