aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2015-11-05 09:42:38 +0100
committerodersky <odersky@gmail.com>2015-11-05 09:42:38 +0100
commit1654ebcafd5635b0c8761ef77beae44c91682e05 (patch)
treefc66ea546735b1da93166303328b719374196308 /tests
parentd3e5a6981c985e71a77356deab9155806b9ffd02 (diff)
parent3badc4d8219385ad0f3bcc77790681a7e7c6d088 (diff)
downloaddotty-1654ebcafd5635b0c8761ef77beae44c91682e05.tar.gz
dotty-1654ebcafd5635b0c8761ef77beae44c91682e05.tar.bz2
dotty-1654ebcafd5635b0c8761ef77beae44c91682e05.zip
Merge pull request #900 from dotty-staging/fix-#871
Deal gracefully with missing return types of abstract menthods.
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i871.scala5
-rw-r--r--tests/pos-special/i871.flags1
-rw-r--r--tests/pos-special/i871.scala4
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/neg/i871.scala b/tests/neg/i871.scala
new file mode 100644
index 000000000..d8e1111a0
--- /dev/null
+++ b/tests/neg/i871.scala
@@ -0,0 +1,5 @@
+trait Message {
+ def first(x: Int)
+ def second
+ 1
+}
diff --git a/tests/pos-special/i871.flags b/tests/pos-special/i871.flags
new file mode 100644
index 000000000..a5c112f5a
--- /dev/null
+++ b/tests/pos-special/i871.flags
@@ -0,0 +1 @@
+-language:Scala2 \ No newline at end of file
diff --git a/tests/pos-special/i871.scala b/tests/pos-special/i871.scala
new file mode 100644
index 000000000..2e5f100d8
--- /dev/null
+++ b/tests/pos-special/i871.scala
@@ -0,0 +1,4 @@
+trait Message {
+ def first(x: Int)
+ def second
+}