-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Port tests to Dotty #3552
Port tests to Dotty #3552
Changes from 1 commit
9e44cfe
d90679d
824deb1
d68da01
94f9dde
610c528
2f17ada
7c7b8f7
3d9b407
8cca359
3d773d4
6ae0881
d94e07a
8abdf3c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ class ApplicativeErrorSuite extends CatsSuite { | |
assert(compileErrors("e2.attemptNarrow[Num]").nonEmpty) | ||
|
||
val e3: Either[List[T[String]], Unit] = List(Str).asLeft[Unit] | ||
assert(compileErrors("e3.attemptNarrow[List[Str.type]]").nonEmpty) | ||
//assertEquals(compileErrors("e3.attemptNarrow[List[Str.type]]"), "") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an odd one, because when I try it in the console it gives me an error but munit returns an empty string here |
||
} | ||
|
||
test("attemptT syntax creates an EitherT") { | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ class RegressionSuite extends CatsSuite with ScalaVersionSpecificRegressionSuite | |
|
||
test("#500: foldMap - traverse consistency") { | ||
assert( | ||
List(1, 2, 3).traverse(i => Const.of[List[Int]](List(i))).getConst == List(1, 2, 3).foldMap(List(_)) | ||
List(1, 2, 3).traverse(i => Const[List[Int], List[Int]](List(i))).getConst == List(1, 2, 3).foldMap(List(_)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dotty was inferring |
||
) | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't
foldStep
public? This would be a rather drastic change if so. I would prefer to see this made package-private (thus, bincompat) and have a 2.0-specific enrichment which usesforSome
in this skolem rank, while a 3.0-specific enrichment uses a higher-rank universal to achieve the same thing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bincompat due to type erasure, but I believe having separate sources here is probably a good idea 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's definitely bincompat, I was mostly just concerned about the loss of type safety in a public-facing API.