From 1cc06bb6976e2d211b6219cfa7cdfbaab193791e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 1 May 2007 14:01:18 +0000 Subject: more additions to checknull. --- test/files/neg/bug997.check | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/neg/bug997.check (limited to 'test/files/neg/bug997.check') diff --git a/test/files/neg/bug997.check b/test/files/neg/bug997.check new file mode 100644 index 0000000000..ba6dfd94bb --- /dev/null +++ b/test/files/neg/bug997.check @@ -0,0 +1,13 @@ +bug997.scala:7: error: wrong number of arguments for object Foo of type Foo.type +"x" match { case Foo(a) => Console.println(a) } + ^ +bug997.scala:7: error: not found: value a +"x" match { case Foo(a) => Console.println(a) } + ^ +bug997.scala:13: error: wrong number of arguments for object Foo of type Foo.type +"x" match { case Foo(a, b, c) => Console.println((a,b,c)) } + ^ +bug997.scala:13: error: not found: value a +"x" match { case Foo(a, b, c) => Console.println((a,b,c)) } + ^ +four errors found -- cgit v1.2.3