summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-05-07 14:28:08 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-05-07 14:28:08 +0200
commite8ed2d2e535d5473187b246befbf4b1eddf161c8 (patch)
tree150d86bacfdd09be293edb3f61c5c774b1212bb6 /test/files
parente735cb3c402c01149c170ea1e6906a7455e15a0b (diff)
parent8317266f34dce29078dc7c4447605701ba82e82a (diff)
downloadscala-e8ed2d2e535d5473187b246befbf4b1eddf161c8.tar.gz
scala-e8ed2d2e535d5473187b246befbf4b1eddf161c8.tar.bz2
scala-e8ed2d2e535d5473187b246befbf4b1eddf161c8.zip
Merge pull request #3703 from huitseeker/issue/SI-8537
SI-8537 Puts SI-8157 fix under Xsource
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t8157-2.10.flags1
-rw-r--r--test/files/pos/t8157-2.10.scala5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t8157-2.10.flags b/test/files/pos/t8157-2.10.flags
new file mode 100644
index 0000000000..94c8056747
--- /dev/null
+++ b/test/files/pos/t8157-2.10.flags
@@ -0,0 +1 @@
+-Xsource:2.10
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 = ???
+}