summaryrefslogblamecommitdiff
path: root/test/files/neg/t391.scala
blob: 08c083baa58d66a8e2d8305f33dec5b6132429d3 (plain) (tree)
1
2
3
4
5
6





                                                          
trait C {
  def fun1(def x: Int): Int = x; // the "def x" is illegal
  def fun2(val x: Int): Int = x; // the "val x" is illegal
}

class E(def x: Int); // the "def x" is illegal