diff options
author | Martin Odersky <odersky@gmail.com> | 2014-04-02 13:30:49 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-04-04 10:05:26 +0200 |
commit | cfa1ccf5759a1beae961afbbc7d752a0a1e3cb62 (patch) | |
tree | 4ed825a182a5a1f1f49e32e05f7b62c0147eb371 /tests/pos | |
parent | 88dcf9ca9fbbc3c106da512beb55a6b447fd833e (diff) | |
download | dotty-cfa1ccf5759a1beae961afbbc7d752a0a1e3cb62.tar.gz dotty-cfa1ccf5759a1beae961afbbc7d752a0a1e3cb62.tar.bz2 dotty-cfa1ccf5759a1beae961afbbc7d752a0a1e3cb62.zip |
test for allOverriddenSymbols
... to verify whether they work correctly.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/overrides.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/overrides.scala b/tests/pos/overrides.scala new file mode 100644 index 000000000..3d254ea70 --- /dev/null +++ b/tests/pos/overrides.scala @@ -0,0 +1,13 @@ +class A[T] { + + def f(x: T)(y: T = x) = y + +} + +class B extends A[Int] { + + def f(x: Int)(y: Int) = y + + f(2)() + +} |