Skip to content

Commit ed3f586

Browse files
committed
Test case for #1641
#1641 compiles under latest master. This test case is there to ensure it stays that way.
1 parent 9c821cb commit ed3f586

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/i1641.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package bar { object bippy extends (Double => String) { def apply(x: Double): String = "Double" } }
2+
package object println { def bippy(x: Int, y: Int, z: Int) = "(Int, Int, Int)" }
3+
object Test {
4+
def main(args: Array[String]): Unit = {
5+
println(bar.bippy(5.5))
6+
println(bar.bippy(1, 2, 3)) // error
7+
}
8+
}

0 commit comments

Comments
 (0)