diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-05 15:06:41 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-11-05 15:06:41 +0100 |
commit | ed3f586c8cd8bfcc31f1e0462a5294182b043103 (patch) | |
tree | d7a567c7283e0a8f947b50bc062168163d35ce07 /tests | |
parent | 9c821cb83ce6b6f566620432ef3b5d70f54c67d2 (diff) | |
download | dotty-ed3f586c8cd8bfcc31f1e0462a5294182b043103.tar.gz dotty-ed3f586c8cd8bfcc31f1e0462a5294182b043103.tar.bz2 dotty-ed3f586c8cd8bfcc31f1e0462a5294182b043103.zip |
Test case for #1641
#1641 compiles under latest master. This test case is there to ensure
it stays that way.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/i1641.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/neg/i1641.scala b/tests/neg/i1641.scala new file mode 100644 index 000000000..db1daf791 --- /dev/null +++ b/tests/neg/i1641.scala @@ -0,0 +1,8 @@ +package bar { object bippy extends (Double => String) { def apply(x: Double): String = "Double" } } +package object println { def bippy(x: Int, y: Int, z: Int) = "(Int, Int, Int)" } +object Test { + def main(args: Array[String]): Unit = { + println(bar.bippy(5.5)) + println(bar.bippy(1, 2, 3)) // error + } +} |