aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/amp.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/amp.scala')
-rw-r--r--tests/neg/amp.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/neg/amp.scala b/tests/neg/amp.scala
index da35242a9..92062eb0d 100644
--- a/tests/neg/amp.scala
+++ b/tests/neg/amp.scala
@@ -2,14 +2,14 @@ object Test extends dotty.runtime.LegacyApp {
def foo() = {
def f: Int = 1
- val x = f _
+ val x = f _ // error: not a function: => Int(f)
x
}
def bar(g: => Int) = {
- g _
+ g _ // error: not a function: => Int(g)
}
- Console.println((bar{ Console.println("g called"); 42 })())
- Console.println(foo()())
+ Console.println((bar{ Console.println("g called"); 42 })()) // error: method bar in object Test$ does not take more parameters
+ Console.println(foo()()) // error: method foo in object Test$ does not take more parameters
}