summaryrefslogtreecommitdiff
path: root/test/files/pos/t8157-2.10.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8157-2.10.scala')
-rw-r--r--test/files/pos/t8157-2.10.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/t8157-2.10.scala b/test/files/pos/t8157-2.10.scala
new file mode 100644
index 0000000000..597585a96d
--- /dev/null
+++ b/test/files/pos/t8157-2.10.scala
@@ -0,0 +1,5 @@
+object Test { // PolyTYped function default arg unicity check,
+ // fails in 2.11, authorized under -Xsource:2.10
+ def foo(printer: Any, question: => String, show: Boolean = false)(op: => Any): Any = ???
+ def foo[T](question: => String, show: Boolean)(op: => Any = ()): Any = ???
+}