Closed
Description
Compiler version
scala 3.1.3
If you're not sure what version you're using, run print scalaVersion
from sbt
(if you're running scalac manually, use scalac -version
instead).
Output
./bin/scala -deprecation
Welcome to Scala 3.1.3 (18.0.1, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
scala> val r=Iterator.from(20)
| .takeWhile(_<69)
val r: Iterator[Int] = <iterator>
scala> val r=Iterator.from(20)
| .takeWhile(_<69).foreach(println)
Bad symbolic reference. A signature
refers to JFunction1$mcZI$sp/T in package scala.runtime.java8 which is not available.
It may be completely missing from the current classpath, or the version on
the classpath might be incompatible with the version used when compiling the signature.
1 error found
Sometimes, I run some example codes like the previous screenshot code. but in other times, it works fine.