I have the following warning, could you explain what does it mean, and how I can correct the code to get rid of the warning?
You forgot the return type in your method definition. Therefore the body is not well parsed.
For example:
def scaleMap(file: File, key: String): Map[String Int] = { ... }
If you don't know the correct return type immediately, you can just ignore the return
part of the method definition. The return type will then be inferred by the compiler.
def scaleMap(file: File, key: String) = { ... }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With