From 7b7d17757177579319d2efa1fd94cea218ad8780 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 11 Feb 2011 09:34:50 +0000 Subject: Fix for #4188. It seems to arise from the changes to inner objects which make them look like lazy vals. I am not sure this is the right change but at least it's only about a six character diff to review. Closes #4188, review by odersky. --- test/files/pos/bug4188.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/files/pos/bug4188.scala (limited to 'test') diff --git a/test/files/pos/bug4188.scala b/test/files/pos/bug4188.scala new file mode 100644 index 0000000000..40e7d4924e --- /dev/null +++ b/test/files/pos/bug4188.scala @@ -0,0 +1,6 @@ +class A { + object Ding + class B { + (null: Any) match { case _: Ding.type => () } + } +} -- cgit v1.2.3