Pregunta de entrevista de Microlise

Why does this specific Scala code not compile?