diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-03-16 16:14:27 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-03-18 11:51:45 +1000 |
commit | dc9effeb3af789d9e4a6b8e126ac73ac718270fa (patch) | |
tree | 1e133925808f155772b5ae0d604ba37bf35f6b49 /test/files/run/trait-clonable.scala | |
parent | c8e6050c3c190dd064642b6b77fc179f27b0495d (diff) | |
download | scala-d0289bc46d9f6e5ead581feab82f8ff85aaf0b83.tar.gz scala-d0289bc46d9f6e5ead581feab82f8ff85aaf0b83.tar.bz2 scala-d0289bc46d9f6e5ead581feab82f8ff85aaf0b83.zip |
Remove manual mixins in JFunctionN.v2.12.0-M3-dc9effe
These manual mixins were forwarding to the impl classes have
just been removed. We can now rely on default methods instead.
Update Tests:
- Fix test/files/pos/t1237.scala, we can't have an outer field
in an interface, always use the outer method.
- Don't crash on meaningless trait early init fields
test/files/neg/t2796.scala
- Remove impl class relate parts of inner class test
- Remove impl class relate parts of elidable test
- Remove impl class related reflection test.
- Remove test solely about trait impl classes renaming
- Update check file with additional stub symbol error
- Disable unstable parts of serialization test.
- TODO explain, and reset the expectation
Diffstat (limited to 'test/files/run/trait-clonable.scala')
-rw-r--r-- | test/files/run/trait-clonable.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/trait-clonable.scala b/test/files/run/trait-clonable.scala new file mode 100644 index 0000000000..5be59d2586 --- /dev/null +++ b/test/files/run/trait-clonable.scala @@ -0,0 +1,11 @@ +// minimization of failure in run/t4813.scala related to the special +// case for default methods that override methods owned by Object.class in +// Java interfaces. +trait C[A >: Null <: AnyRef] { override def clone(): A = null } +trait X extends C[X] +class D extends X { def foo = (this: X).clone() } +object Test { + def main(args: Array[String]) { + assert(new D().foo == null) + } +} |