Skip to content

More Dotty compat stuff in tests#3255

Merged
travisbrown merged 5 commits into
typelevel:masterfrom
travisbrown:topic/more-dotty-stuff-in-tests
Jan 14, 2020
Merged

More Dotty compat stuff in tests#3255
travisbrown merged 5 commits into
typelevel:masterfrom
travisbrown:topic/more-dotty-stuff-in-tests

Conversation

@travisbrown
Copy link
Copy Markdown
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
Copy Markdown
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