aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t3371.scala
blob: 897cd9de44abcf9c231213623baa46a7903a41f4 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                 
// that compiles
class Test(myValue:String) { println(myValue) }

// that compiles too
trait Other { val otherValue = "" }
class Test2(myValue:String) { self:Other => println(otherValue) }

// that does not compile saying that myValue is not found
class Test3(myValue:String) { self:Other => println(myValue) }