title: import ExecutionContext.global and ExecutionContext.Implicits.global at the same time in scala
body: <p>I have following test case:</p>
  
  <pre><code>test("test future") {
      import scala.concurrent.ExecutionContext.global
      import scala.concurrent.ExecutionContext.Implicits.global
      case class Result(value: String)
      val f = Future {
        println("Start future")
        Thread.sleep(1000)
        println("End future")
        Result("The Job is finished")
      }
  
      f.onComplete({
        case Success(r) =&gt; println(r.value)
        case Failure(ex) =&gt; ex.printStackTrace()
      })
  
  
      //Hold the test thread
      Thread.sleep(3000)
  
    }
  </code></pre>
  
  <p>There is compile error that complains <code>Cannot find an implicit ExecutionContext</code></p>
  
  <p>But If I remove <code>import scala.concurrent.ExecutionContext.global</code> from the code,
  then it works.</p>
  
  <p>I would ask why it doesn't work if I import both <code>ExecutionContext.global</code> and <code>ExecutionContext.Implicits.global</code></p>