Test case closes #3371, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25280 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
3da87e0204
commit
0bd1e96e5c
|
@ -0,0 +1,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) }
|
Loading…
Reference in New Issue