diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/pending/pos/t0576.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pending/pos/t0576.scala b/test/pending/pos/t0576.scala new file mode 100644 index 0000000000..669806826d --- /dev/null +++ b/test/pending/pos/t0576.scala @@ -0,0 +1,9 @@ +class Test { + new Object { self => + def f(other: Any): Boolean = + other match { + case that: self.type => true + case _ => false + } + } +} |