aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/desugar.scala
blob: ffd114652d539232c174ba51fce2a25ad59ab130 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                        
object desugar {

  // variables
  var x: Int = 2
  var y = x * x
  
  { var z: Int = y }
 
  def foo0(first: Int, second: Int = 2, third: Int = 3) = first + second
  def foo1(first: Int, second: Int = 2)(third: Int = 3) = first + second
  def foo2(first: Int)(second: Int = 2)(third: Int = 3) = first + second

}