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

More Dotty compat stuff in tests #3255

Merged

Conversation

travisbrown
Copy link
Contributor

Okay, I think I'm really close to cross-compiling the Cats tests on Dotty, and I'm pretty sure this is the last batch of Scala 2-friendly changes that could be merged into master right now. (The rest of the changes are stubs for ScalaTest macros and explicit type parameters for cases where Dotty's type inference is worse than Scala 2's, which I'm working on feature requests for.)

Note that I've changed a few instances of "code" shouldNot compile to assertDoesNotCompile("code"), which is both more consistent with Cats's style elsewhere (e.g. using assertTypeError instead of shouldNot typeCheck) and easier to temporarily stub for Dotty. In my view this is a strict improvement even on Scala 2 (but I hate ScalaTest's matchers in general).

Copy link
Member

@rossabaker rossabaker left a comment

Choose a reason for hiding this comment

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

👍 on green

@travisbrown travisbrown merged commit c9b6e15 into typelevel:master Jan 14, 2020
@travisbrown travisbrown added this to the 2.2.0-M1 milestone Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants