aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/amp.scala
diff options
context:
space:
mode:
authorVladimirNik <vladimir.nikolaev9@gmail.com>2016-02-18 18:10:35 +0100
committerVladimirNik <vladimir.nikolaev9@gmail.com>2016-02-18 18:11:46 +0100
commit955b04a41ccefeac6bfec0158991c152165be6eb (patch)
tree1aa3649b0997b865c9dd4c2aa02bb4a9a6e37efb /tests/neg/amp.scala
parent5fc321ffaa0a0b6b997c0fdecf1a86590474d812 (diff)
downloaddotty-955b04a41ccefeac6bfec0158991c152165be6eb.tar.gz
dotty-955b04a41ccefeac6bfec0158991c152165be6eb.tar.bz2
dotty-955b04a41ccefeac6bfec0158991c152165be6eb.zip
Adapt neg tests to new neg tests checks
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
}