blob: afe4b8f3321dc6136b86d42d5929a970bfca1f65 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
object Test {
def foo:int = {
val x | 1 = 2; // not allowed
x
}
class Bar {
case class PT(x: PT) {
def foo(x: Any) = x match {
case PT(a@PT(a)) => // not allowed
}
}
}
}
|