codingteam / Keter

A roguelike game in the SCP setting.
https://codingteam.github.io/Keter/
MIT License
15 stars 5 forks source link

Implicit conversion to the RichDisplay #13

Closed ForNeVeR closed 9 years ago

ForNeVeR commented 9 years ago

We should fix the following warning from the scalac:

Добавил scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature") -- получил

[warn] /home/ingvar/Projects/Keter/src/main/scala/ru/org/codingteam/rotjs/wrapper/Wrappers.scala:7: >     implicit conversion method richDisplay should be enabled
[warn] by making the implicit value scala.language.implicitConversions visible.
[warn] This can be achieved by adding the import clause 'import scala.language.implicitConversions'
[warn] or by setting the compiler option -language:implicitConversions.
[warn] See the Scala docs for value scala.language.implicitConversions for a discussion
[warn] why the feature should be explicitly enabled.
[warn]   implicit def richDisplay(display: Display) = new RichDisplay(display)
[warn]                ^
[warn] one warning found

I think it can be fixed by converting RichDisplay to the implicit class.

ForNeVeR commented 9 years ago

It was done.