2
Scala Anfänger hier und ich habe versucht, das Beispiel hier aus:Scala mehrdeutig Importe
val nasRDD = parsed.map(md => { md.scores.map(d => NAStatCounter(d)) })
Der Fehler gibt mir oben:
<console>:51: error: reference to NAStatCounter is ambiguous;
it is imported twice in the same scope by
import $VAL180.NAStatCounter
and import INSTANCE.NAStatCounter
md.scores.map(d => NAStatCounter(d))
^
Kann jemand bitte erklären, warum diese Doppel Import passiert. Wie kann ich das abwenden?
können Sie all Ihre Importe hinzufügen? – marios