diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-02 10:42:48 +0200 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-02 12:40:56 +0200 |
commit | 3e20bebd192444d8c1b079489292011e8030b532 (patch) | |
tree | 40265c7572ec2da0060e5443e434a92c3cd7ab98 /test/files | |
parent | 90d2bee45b25844f809f8c5300aefcb1bfe9e336 (diff) | |
download | scala-3e20bebd192444d8c1b079489292011e8030b532.tar.gz scala-3e20bebd192444d8c1b079489292011e8030b532.tar.bz2 scala-3e20bebd192444d8c1b079489292011e8030b532.zip |
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
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t5729.scala | 6 |
1 files changed, 6 insertions, 0 deletions
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 |