diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-01 21:51:34 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-10-11 19:21:02 +0200 |
commit | 25c0398b6f07df2449652e66cef8b6a6d3d4c7ce (patch) | |
tree | 75124ba8ba9d7663b7c6f2b739c55f828406386e /tests/pickling | |
parent | 3d74bfa72bdc794cfb11b6afe15c77a5357617d1 (diff) | |
download | dotty-25c0398b6f07df2449652e66cef8b6a6d3d4c7ce.tar.gz dotty-25c0398b6f07df2449652e66cef8b6a6d3d4c7ce.tar.bz2 dotty-25c0398b6f07df2449652e66cef8b6a6d3d4c7ce.zip |
Adapt tests
Diffstat (limited to 'tests/pickling')
-rw-r--r-- | tests/pickling/unions.scala | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/pickling/unions.scala b/tests/pickling/unions.scala deleted file mode 100644 index 22e6391e3..000000000 --- a/tests/pickling/unions.scala +++ /dev/null @@ -1,33 +0,0 @@ -object unions { - - class A { - def f: String = "abc" - - def g(x: Int): Int = x - def g(x: Double): Double = x - } - - class B { - def f: String = "bcd" - - def g(x: Int) = -x - def g(x: Double): Double = -x - } - - val x: A | B = if (true) new A else new B - def y: B | A = if (true) new A else new B - println(x.f) - println(x.g(2)) - println(y.f) - println(y.g(1.0)) - println(y.g(1.0f)) - - class C { - private def foo = 0 - class D extends C { - private def foo = 1 - def test(cd: C | D, dc: D | C) = (cd.foo, dc.foo) - } - } - -} |