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


                                  

                
                
                     
   


                      
   

                                          
                                       



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

object test1 {
  type t = int
  type t = float
  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
  val closure = (x: int, x: float) => x
  List() match {
    case x::x => x
    case Nil => Nil
  }
}