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
Style Traits + Matchers DSL Infix #2170
Style Traits + Matchers DSL Infix #2170
Conversation
@@ -273,6 +276,7 @@ trait AnyFreeSpecLike extends TestSuite with TestRegistration with Informing wit | |||
* implementation of this method will register the text (passed to the contructor of <code>FreeSpecStringWrapper</code> | |||
* and immediately invoke the passed function. | |||
*/ | |||
//DOTTY-ONLY infix | |||
def -(fun: => Unit): Unit = { |
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.
@cheeseng This one is not needed, because - is symbolic.
@@ -279,6 +282,7 @@ trait AsyncFreeSpecLike extends AsyncTestSuite with AsyncTestRegistration with I | |||
* implementation of this method will register the text (passed to the contructor of <code>FreeSpecStringWrapper</code> | |||
* and immediately invoke the passed function. | |||
*/ | |||
//DOTTY-ONLY infix |
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.
@cheeseng Another infix that's not needed.
@@ -355,6 +360,7 @@ trait FixtureAnyFreeSpecLike extends org.scalatest.FixtureTestSuite with org.sca | |||
* implementation of this method will register the text (passed to the contructor of <code>FreeSpecStringWrapper</code> | |||
* and immediately invoke the passed function. | |||
*/ | |||
//DOTTY-ONLY infix | |||
def -(fun: => Unit): Unit = { |
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.
@cheeseng And another. I'll add a commit to remove these.
Added Scala 3 infix modifier to style traits DSL and remaining matchers DSL.