diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-20 09:35:51 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-20 09:35:51 -0700 |
commit | a3d122a251bc89b4de23dd1e8b875b9f1c8fc97b (patch) | |
tree | 30672566b5a135c79fa498ea1eae588101a2a260 /test/files | |
parent | c1816313f52860d47dc7f3efed195f5b0482743b (diff) | |
parent | 86f7bc35e5fd9c12913318ed2b31e207d6f261fb (diff) | |
download | scala-a3d122a251bc89b4de23dd1e8b875b9f1c8fc97b.tar.gz scala-a3d122a251bc89b4de23dd1e8b875b9f1c8fc97b.tar.bz2 scala-a3d122a251bc89b4de23dd1e8b875b9f1c8fc97b.zip |
Merge pull request #941 from adriaanm/ticket-6104
SI-6104 support This pattern
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t6104.check | 1 | ||||
-rw-r--r-- | test/files/run/t6104.scala | 8 |
2 files changed, 9 insertions, 0 deletions
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 |