summaryrefslogblamecommitdiff
path: root/test/files/neg/scopes.scala
blob: f5e60b72b600293a5735ce57d1a305c6ff5c8426 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                  


                      
   

                                          
                         



                   
 
case class test0(x: int, x: float)

object test1 {
  val x: int = 0
  val x: float = .0f
  {
    val y: int = 0
    val y: float = .0f
    ()
  }
  def f1(x: int, x: float) = x
  def f2(x: int)(y: int, y: float) = x + y
  (x: int, x: float) => x
  List() match {
    case x::x => x
    case Nil => Nil
  }
}