scala-exercises / exercises-stdlib

Scala Exercises' lessons for the standard library
Apache License 2.0
160 stars 333 forks source link

type of implicit definition needs to be given explicitly #384

Open exomaus opened 1 year ago

exomaus commented 1 year ago

In Scala 3.2.2 REPL get this error in examples with implicits.

|implicit def thisMethodNameIsIrrelevant(value: Int) =
|             ^
|           result type of implicit definition needs to be given explicitly
implicit val hourlyRate = BigDecimal(34)
              ^
              type of implicit definition needs to be given explicitly