title: How do you enable a postfix operator in scala?
body: <p>For example, when I try to run:</p>
  
  <pre><code>import scala.concurrent.duration._
  Await.result(f, 1 seconds)
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>postfix operator seconds needs to be enabled</p>
  </blockquote>
  
  <p>How do I do that?<br>
  Why do I need that step when I already included the import?</p>
  
  <hr>
  
  <p>See also - Other <a href="https://stackoverflow.com/questions/39093695/scala-postfix-operator-warning-contradicts-with-scaladoc">question</a> for a previous scala version with different error message covering a similar case but with an ! operator for working with files, but this does not ask the general quesion of how to disable postfix operators, or answer the question of how to use scala.concurrent.duration.</p>