From 86f7bc35e5fd9c12913318ed2b31e207d6f261fb Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 18 Jul 2012 20:00:44 +0200 Subject: SI-6104 support This pattern This(name) is treated just like Ident(name) apparently this pattern was used in 2.9 code, though I'm not sure it's spec'ed --- test/files/run/t6104.check | 1 + test/files/run/t6104.scala | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/files/run/t6104.check create mode 100644 test/files/run/t6104.scala (limited to 'test/files') diff --git a/test/files/run/t6104.check b/test/files/run/t6104.check new file mode 100644 index 0000000000..9766475a41 --- /dev/null +++ b/test/files/run/t6104.check @@ -0,0 +1 @@ +ok diff --git a/test/files/run/t6104.scala b/test/files/run/t6104.scala new file mode 100644 index 0000000000..8ab12c7752 --- /dev/null +++ b/test/files/run/t6104.scala @@ -0,0 +1,8 @@ +class A { Self => + val ok = "ok" + this match { + case me@Self => println(me.ok) + } +} + +object Test extends A with App \ No newline at end of file -- cgit v1.2.3