val a = async { "hello" } // gives warning
val b: Future[String] = async { "hello" }
While compiling the above code with compiler option "-Xlint:nullary-override" enabled on scala 2.13.2 version, the first line throws an warning saying nullary method assumes an empty parameter list from the overridden definition. After providing explicit type, the warning goes away as written on second line.