You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8", // yes, this is 2 args
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code", // N.B. doesn't work well with the ??? hole
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import", // 2.11 only
"-Yno-imports" // no automatic imports at all; all symbols must be imported explicitly
)
The león library defines many objects & classes in a package object.
This results in a warning with scalac that with the above flags becomes an error.
Is it possible to refactor the library; e.g., instead of:
file: library/leon/annotation/package.scala:
package leon
import scala.annotation.StaticAnnotation
package object annotation {
@ignore
class library extends StaticAnnotation
...
Each of the objects/classes would be defined in a corresponding compilation unit, e.g.:
library would be defined in library/leon/annotation/library.scala
The text was updated successfully, but these errors were encountered:
I like to compile my scala code with these flags:
The león library defines many objects & classes in a package object.
This results in a warning with scalac that with the above flags becomes an error.
Is it possible to refactor the library; e.g., instead of:
file:
library/leon/annotation/package.scala
:Each of the objects/classes would be defined in a corresponding compilation unit, e.g.:
library
would be defined inlibrary/leon/annotation/library.scala
The text was updated successfully, but these errors were encountered: