aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t4760.scala
blob: 039f0836807086b2ae30e351543d6db270cebe98 (plain) (tree)


































                                                   
class Test {
  // parses
  def f1 = {
    import scala._;
  }
  // b.scala:7: error: ';' expected but '}' found.
  //   }
  //   ^
  // one error found
  def f2 = {
    import scala._
  }
  def f2b = {
    import scala.collection.mutable.{ Map => MMap }
  }
  def f(): Unit = {
    locally {
      import scala.util.Properties.lineSeparator
    }
  }

  // parses
  def f3 = {
    import scala._
    5
  }
  locally { (x: Int) =>
    import scala.util._
  }
  1 match {
    case 1 => import scala.concurrent._
  }
}