Closed rseac closed 7 months ago
Can you share your build.sbt
?
I get the same error in Scastie.
This was generated using the sbt new scala/scala3.g8
.
val scala3Version = "3.3.1"
lazy val root = project
.in(file("."))
.settings(
name := "fhe",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies += "org.typelevel" %% "spire" % "0.18.0",
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test
)
I think you have to write it as Complex(4.0, 3.0).sin
. I can't find any example where it works as you've written it (Scala 2 or Scala 3).
Ah :( sorry about that. That is the problem.
For the simple example:
Gives an error:
I wonder if this is a problem related to using Scala 3 vs Scala 2?