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:
extempore 2011-07-13 06:58:53 +00:00
parent 3da87e0204
commit 0bd1e96e5c
1 changed files with 9 additions and 0 deletions

View File

@ -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) }