From 955b04a41ccefeac6bfec0158991c152165be6eb Mon Sep 17 00:00:00 2001 From: VladimirNik Date: Thu, 18 Feb 2016 18:10:35 +0100 Subject: Adapt neg tests to new neg tests checks --- tests/neg/amp.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/neg/amp.scala') 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 } -- cgit v1.2.3