blob: 08c083baa58d66a8e2d8305f33dec5b6132429d3 (
plain) (
blame)
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
|