5
Dans le code suivant, je reçois une erreur de compilation indiquant que j'ai une incompatibilité de type sur 'x':Auto-unboxing Scala modèle match
val someRef: java.lang.Long = 42L
someRef match {
case x: Long => println("The answer: " + x)
case _ => println("Unknown")
}
Comment puis-je obtenir Scala à l'auto-Unbox someRef dans la déclaration de match?
C'est fait. Merci. – Ralph