summaryrefslogtreecommitdiff
path: root/test/files/run/bugs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r--test/files/run/bugs.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala
index 31c82eb490..b0a26d92e3 100644
--- a/test/files/run/bugs.scala
+++ b/test/files/run/bugs.scala
@@ -300,7 +300,7 @@ object Bug257Test {
def f1(x: Unit): Unit = ();
def f2(x: Unit)(y: Unit): Unit = ();
- def f(def x: Unit) = {
+ def f(x: => Unit) = {
f1(x);
f2(x);
}
@@ -404,7 +404,7 @@ object Bug328Test {
object Test {
var errors: Int = 0;
- def test(bug: Int, def test: Unit): Unit = {
+ def test(bug: Int, test: => Unit): Unit = {
System.out.println("<<< bug " + bug);
try {
test;