diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-06-09 13:22:01 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-06-09 13:22:01 +0000 |
commit | f205501be80001855b06d64c4260adafe6dc4417 (patch) | |
tree | 4e5d936a17e5171403ee3dddba5a67b21b4d5e6e /test/pending/neg/bug1987.scala | |
parent | 238ad426ba6166223595c79a55fbeb768843d74e (diff) | |
download | scala-f205501be80001855b06d64c4260adafe6dc4417.tar.gz scala-f205501be80001855b06d64c4260adafe6dc4417.tar.bz2 scala-f205501be80001855b06d64c4260adafe6dc4417.zip |
Added a series of pending test cases.
Diffstat (limited to 'test/pending/neg/bug1987.scala')
-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. +} |