diff options
Diffstat (limited to 'test/files/pos/t4593.scala')
-rw-r--r-- | test/files/pos/t4593.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/pos/t4593.scala b/test/files/pos/t4593.scala new file mode 100644 index 0000000000..250f68216a --- /dev/null +++ b/test/files/pos/t4593.scala @@ -0,0 +1,20 @@ +// ticket #4593 +trait A { + + class B + case object D extends B + + class C { + + var x: B = D + + def y = synchronized { + x match { + case D => {} + } + } + + } + +} + |