From 9ef5f6817688f814a3450126aa7383b0928e80a0 Mon Sep 17 00:00:00 2001 From: Samuel Gruetter Date: Wed, 12 Mar 2014 22:44:33 +0100 Subject: add tests from scala/test/files/{pos,neg} with explicit Unit return type --- tests/untried/neg/t5856.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/untried/neg/t5856.scala (limited to 'tests/untried/neg/t5856.scala') diff --git a/tests/untried/neg/t5856.scala b/tests/untried/neg/t5856.scala new file mode 100644 index 000000000..2ceee590a --- /dev/null +++ b/tests/untried/neg/t5856.scala @@ -0,0 +1,11 @@ +object Test { + val s1 = s"$null" + val s2 = s"$false" + val s3 = s"$true" + val s4 = s"$yield" + val s5 = s"$return" + val s6 = s"$new" + val s7 = s"$s1 $null $super" + val s8 = s"$super" + val s9 = s"$" +} \ No newline at end of file -- cgit v1.2.3