From 3e20bebd192444d8c1b079489292011e8030b532 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 2 May 2012 10:42:48 +0200 Subject: SI-5729: TypeVar experimentals iff -Xexperimental it used to also be enabled by -Yvirtpatmat, which is now on by default, but this type hackery is no longer necessary to bootstrap under the new pattern matching scheme, so let's only turn it on when people are feeling -Xexperimental --- test/files/pos/t5729.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/pos/t5729.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t5729.scala b/test/files/pos/t5729.scala new file mode 100644 index 0000000000..9fd9c9ffbb --- /dev/null +++ b/test/files/pos/t5729.scala @@ -0,0 +1,6 @@ +trait T[X] +object Test { + def join(in: Seq[T[_]]): Int = ??? + def join[S](in: Seq[T[S]]): String = ??? + join(null: Seq[T[_]]) +} \ No newline at end of file -- cgit v1.2.3 From e9ed9d4280246fece2268e69cca0fe316ba19b98 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 2 May 2012 16:11:34 +0200 Subject: SI-5542 closed by test case --- test/files/pos/t5542.flags | 1 + test/files/pos/t5542.scala | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 test/files/pos/t5542.flags create mode 100644 test/files/pos/t5542.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t5542.flags b/test/files/pos/t5542.flags new file mode 100644 index 0000000000..464cc20ea6 --- /dev/null +++ b/test/files/pos/t5542.flags @@ -0,0 +1 @@ +-Xfatal-warnings -unchecked \ No newline at end of file diff --git a/test/files/pos/t5542.scala b/test/files/pos/t5542.scala new file mode 100644 index 0000000000..80b8cef030 --- /dev/null +++ b/test/files/pos/t5542.scala @@ -0,0 +1,3 @@ +class Test { + Option(3) match { case Some(n) => n; case None => 0 } +} \ No newline at end of file -- cgit v1.2.3