我有一个密封类,写在科特林: sealed class Schema {
class RecordSchema(val fields: List<Field>): Schema()
class ArraySchema(val elementSchema: Schema): Schema()
...
}
而另一个类,它RecordSchema作为参数: class
在我的播放应用程序中,我有一个路由文件,其中包含公用文件的路由。最近我添加了-Ywarn-unused编译器标志,我收到了一些意想不到的警告。 步骤: activator new testingScalac(请从模板列表播放斯卡拉) 添加到build.sbt国旗与scalacOptions ++= Seq("-Ywarn-unused") 添加到路由文件: GET /favicon.ico con
从游戏2.4到2.5迁移后,我们面临着废弃警告,内捻模板: ...web/templates/main.scala.html:159: method get in object Messages is deprecated: see corresponding Javadoc for more information. [warn] <a href="@routes.Authentication.