Skip to content

Commit 5039187

Browse files
committed
Fix tests
1 parent 335f941 commit 5039187

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/src/dotty/tools/dotc/core/OrderingConstraint.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import printing.Texts._
1010
import config.Config
1111
import reflect.ClassTag
1212
import annotation.tailrec
13+
import annotation.internal.sharable
1314

1415
object OrderingConstraint {
1516

@@ -103,6 +104,7 @@ object OrderingConstraint {
103104
def initial = Nil
104105
}
105106

107+
@sharable
106108
val empty = new OrderingConstraint(SimpleIdentityMap.Empty, SimpleIdentityMap.Empty, SimpleIdentityMap.Empty)
107109
}
108110

tests/neg/typeclass-derivation2.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ object Pair extends Deriving {
162162
protected val caseLabels = Array("Pair\000x\000y")
163163
}
164164

165-
sealed trait Either[+L, +R] extends Product derives Eq, Pickler
165+
sealed trait Either[+L, +R] extends Product
166166
case class Left[L](x: L) extends Either[L, Nothing]
167167
case class Right[R](x: R) extends Either[Nothing, R]
168168

@@ -254,7 +254,7 @@ object Test extends App {
254254
showPrintln(zs) // error
255255
/* This should print as follows:
256256
-- Error: typeclass-derivation2.scala:254:17 -----------------------------------
257-
254 | showPrintln(zs) // error
257+
254 | showPrintln(zs)
258258
| ^
259259
|no implicit argument of type Show[Lst[Either[Int, Pair[Int]]]] was found for parameter evidence$5 of method showPrintln in object Test.
260260
|I found:

0 commit comments

Comments
 (0)