-
Notifications
You must be signed in to change notification settings - Fork 185
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
run more expect tests against Scala 3 #1952
Conversation
@@ -17,6 +17,8 @@ Disable.symbols = [ | |||
|
|||
package test.escapeHatch | |||
|
|||
import test.disableSyntax.DisableSyntaxMoreRules.toString |
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.
[error] 37 | None + "foo",
[error] | ^^^^^^
[error] |value + is not a member of object None, but could be made available as an extension method.
[error] |
[error] |The following import might fix the problem:
[error] |
[error] | import test.disableSyntax.DisableSyntaxMoreRules.toString
[error] |
def this(eDummy: String, fDummy: String) { | ||
this | ||
def this(eDummy: String, fDummy: String) = { | ||
this() |
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.
[error] 123 | this
[error] | ^
[error] |None of the overloaded alternatives of constructor DummyClass_6 in class DummyClass_6 with types
[error] | (eDummy: String, fDummy: String): test.escapeHatch.AnnotationScopes.DummyClass_6
[error] | (): test.escapeHatch.AnnotationScopes.DummyClass_6
[error] |match arguments ((??? : => Nothing))
@@ -25,8 +25,6 @@ object AnnotationScopes { | |||
|
|||
class Foo_0[DummyTypeParam] // assert: NoDummy | |||
|
|||
def dummyMacro_0: Unit = macro ??? // assert: NoDummy |
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.
[error] | ^
[error] | No Scala 3 implementation found for this Scala 2 macro.
I decided it was niche enough to just drop the test case
06015e8
to
36c59ec
Compare
|
||
object AnchorPatches { | ||
def d1s = Duration(1, "s") | ||
def d2s = Duration(2, "s") // scalafix:ok ExplicitResultTypes |
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.
rewrote the test to leverage RemoveUnused only, as ExplicitResultTypes is not available on Scala 3, thus the undetected rename
36c59ec
to
f095917
Compare
// Fails with Scala3 dialect as the second silencer is not attached to the Defn.Val | ||
// https://github.com/scalameta/scalameta/issues/3689 |
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.
9e440d8
to
54d1bca
Compare
// Unsupported on Scala 3 | ||
// https://github.com/scala/scala3/issues/12766 | ||
// https://github.com/scalacenter/scalafix/blob/f51cb4a/docs/rules/OrganizeImports.md?plain=1#L440-L444 |
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.
54d1bca
to
b332360
Compare
// Not available as of Scala 3.4.1 | ||
// https://github.com/scalacenter/scalafix/issues/1937 |
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.
Rationale: ensure good coverage & detect potential Scalameta regressions