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

More Open Classes for Scala 3 #2178

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions jvm/core/src/main/scala/org/scalatest/FutureOutcome.scala
Expand Up @@ -99,7 +99,10 @@ And this confusion of Success(Failed) is what the Or is intended to alleviate.
* with <code>FutureOutcome</code>.
* </p>
*/
// SKIP-DOTTY-START
class FutureOutcome(private[scalatest] val underlying: Future[Outcome]) {
// SKIP-DOTTY-END
//DOTTY-ONLY open class FutureOutcome(private[scalatest] val underlying: Future[Outcome]) {
// TODO: add tests for pretty toString

/**
Expand Down
3 changes: 3 additions & 0 deletions jvm/core/src/main/scala/org/scalatest/Sequential.scala
Expand Up @@ -63,7 +63,10 @@ import org.scalactic.exceptions.NullArgumentException
*
* @author Bill Venners
*/
// SKIP-DOTTY-START
class Sequential(suitesToNest: Suite*) extends Suite with SequentialNestedSuiteExecution { thisSuite =>
// SKIP-DOTTY-END
//DOTTY-ONLY open class Sequential(suitesToNest: Suite*) extends Suite with SequentialNestedSuiteExecution { thisSuite =>

requireNonNull(suitesToNest)

Expand Down
3 changes: 3 additions & 0 deletions jvm/core/src/main/scala/org/scalatest/Stepwise.scala
Expand Up @@ -61,7 +61,10 @@ import org.scalactic.exceptions.NullArgumentException
*
* @author Bill Venners
*/
// SKIP-DOTTY-START
class Stepwise(suitesToNest: Suite*) extends Suite with StepwiseNestedSuiteExecution { thisSuite =>
// SKIP-DOTTY-END
//DOTTY-ONLY open class Stepwise(suitesToNest: Suite*) extends Suite with StepwiseNestedSuiteExecution { thisSuite =>

requireNonNull(suitesToNest)

Expand Down
3 changes: 3 additions & 0 deletions jvm/core/src/main/scala/org/scalatest/Suites.scala
Expand Up @@ -54,7 +54,10 @@ import org.scalactic.exceptions.NullArgumentException
*/
//SCALATESTJS-ONLY @scala.scalajs.reflect.annotation.EnableReflectiveInstantiation
//SCALATESTNATIVE-ONLY @scala.scalanative.reflect.annotation.EnableReflectiveInstantiation
// SKIP-DOTTY-START
class Suites(suitesToNest: Suite*) extends Suite { thisSuite =>
// SKIP-DOTTY-END
//DOTTY-ONLY open class Suites(suitesToNest: Suite*) extends Suite { thisSuite =>

requireNonNull(suitesToNest)

Expand Down
3 changes: 3 additions & 0 deletions jvm/core/src/main/scala/org/scalatest/Tag.scala
Expand Up @@ -146,7 +146,10 @@ package org.scalatest
* @author Bill Venners
* @author George Berger
*/
// SKIP-DOTTY-START
class Tag(val name: String)
// SKIP-DOTTY-END
//DOTTY-ONLY open class Tag(val name: String)

/**
* Companion object for <code>Tag</code>, which offers a factory method.
Expand Down