I'm importing an implicit: scala.concurrent.ExecutionContext.Implicits.global, and before this, I import global.Analytics.xyzMethod
, where global is a directory in my package. However, for some reason, scala things this global is same as the first global. How do I resolve this?
Use import rename :
import scala.concurrent.ExecutionContext.Implicits.{global => newName}
Try this:
import _root_.global.Analytics.xyzMethod
see also: scala package conflict
edit: I'm unfortunately unable to address the concern of som-snytt properly. Please take his comment into account.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With