diff options
Diffstat (limited to 'test/pending/neg')
-rw-r--r-- | test/pending/neg/bug1987.scala | 14 |
1 files changed, 14 insertions, 0 deletions
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. +} |