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

Style Traits + Matchers DSL Infix #2170

Merged
merged 7 commits into from Nov 30, 2022

Conversation

cheeseng
Copy link
Contributor

@cheeseng cheeseng commented Oct 8, 2022

Added Scala 3 infix modifier to style traits DSL and remaining matchers DSL.

@@ -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 = {
Copy link
Contributor

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
Copy link
Contributor

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 = {
Copy link
Contributor

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.

@cheeseng cheeseng merged commit 3b2dc4e into scalatest:3.2.x-new Nov 30, 2022
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.

None yet

2 participants