From 8317266f34dce29078dc7c4447605701ba82e82a Mon Sep 17 00:00:00 2001 From: François Garillot Date: Fri, 25 Apr 2014 15:52:50 +0200 Subject: SI-8537 Puts SI-8157 fix under Xsource --- test/files/pos/t8157-2.10.flags | 1 + test/files/pos/t8157-2.10.scala | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 test/files/pos/t8157-2.10.flags create mode 100644 test/files/pos/t8157-2.10.scala (limited to 'test/files/pos') 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 = ??? +} -- cgit v1.2.3