diff options
author | Paul Phillips <paulp@improving.org> | 2011-01-08 08:08:27 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-01-08 08:08:27 +0000 |
commit | d45b5ceed946dbcfb9a852cc7fd25267b6b168a2 (patch) | |
tree | 509d69ec309c6ec84e1e341de61390843a4d6ca8 /test/files | |
parent | 32e7c243272d7aaae6c662aa3e1716dae61e1117 (diff) | |
download | scala-d45b5ceed946dbcfb9a852cc7fd25267b6b168a2.tar.gz scala-d45b5ceed946dbcfb9a852cc7fd25267b6b168a2.tar.bz2 scala-d45b5ceed946dbcfb9a852cc7fd25267b6b168a2.zip |
Override checks and self-types still needed som...
Override checks and self-types still needed some work (ticket #2808.)
I believe this is the right change. The modifications in parallel and
actors were a result of the files failing to compile after the change to
allOverriddenSymbols. (I am taking the position that that aspect is a
feature.) Review by malayeri, odersky.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/self-type-override.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/self-type-override.scala b/test/files/pos/self-type-override.scala new file mode 100644 index 0000000000..7c40ef37e6 --- /dev/null +++ b/test/files/pos/self-type-override.scala @@ -0,0 +1,13 @@ +trait TCommon { + def f: String +} + +class C1 extends TCommon { + def f = "in C1" +} + +trait TOverrider { this: TCommon => + override def f = "in TOverrider" // The overridden self-type member... +} + +class C2 extends C1 with TOverrider // ... fails to override, here. |