Skip to content

Commit 4a7e92b

Browse files
szymon-rdKordyjan
authored andcommitted
Do not depend on runtime lib in tests
1 parent 1a77625 commit 4a7e92b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/run/i16806.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import java.util.concurrent.Semaphore
2-
import scala.runtime.LazyVals.Evaluating
32

43
object Repro {
54

@@ -25,14 +24,14 @@ object Repro {
2524
override def run(): Unit =
2625
Holder.s.acquire()
2726
val x = Holder.Bit.value
28-
assert(!x.isInstanceOf[Evaluating.type])
27+
assert(x.isInstanceOf[DFBit.type])
2928
println("Success")
3029
}
3130
val b = new Thread() {
3231
override def run(): Unit =
3332
Holder.s.acquire()
3433
val x = Holder.Bit.value
35-
assert(!x.isInstanceOf[Evaluating.type])
34+
assert(x.isInstanceOf[DFBit.type])
3635
println("Success")
3736
}
3837
a.start()

0 commit comments

Comments
 (0)