From f205501be80001855b06d64c4260adafe6dc4417 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Tue, 9 Jun 2009 13:22:01 +0000 Subject: Added a series of pending test cases. --- test/pending/neg/bug1987.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/pending/neg/bug1987.scala (limited to 'test/pending/neg') diff --git a/test/pending/neg/bug1987.scala b/test/pending/neg/bug1987.scala new file mode 100644 index 0000000000..d45f1b0f0d --- /dev/null +++ b/test/pending/neg/bug1987.scala @@ -0,0 +1,14 @@ + + +// Copyright Shunsuke Sogame 2008-2009. +// Distributed under the terms of an MIT-style license. + + +package object overloading { + def bar(f: (Int) => Unit): Unit = () + def bar(f: (Int, Int) => Unit): Unit = () +} + +class PackageObjectOverloadingTest { + overloading.bar( (i: Int) => () ) // doesn't compile. +} -- cgit v1.2.3