diff options
Diffstat (limited to 'tests/pos/sigs.scala')
-rw-r--r-- | tests/pos/sigs.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/pos/sigs.scala b/tests/pos/sigs.scala new file mode 100644 index 000000000..4b91015ee --- /dev/null +++ b/tests/pos/sigs.scala @@ -0,0 +1,21 @@ +object sigs { + + var x = 7 * 9 + + class Base { + + def foo(x: Int): Any = 33 + + def foo: Object = "x" + + } + + class Sub extends Base { + + override def foo = "abc" + + override def foo(x: Int) = "abc" + } + + +}
\ No newline at end of file |