We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
object Test { inline def meth[R <: Int]: R = 3.asInstanceOf[R] // inferred type is Nothing def main(args: Array[String]): Unit = { val t: Int = meth } }
It should work as in the normal case.