diff options
author | Paul Phillips <paulp@improving.org> | 2011-02-11 09:34:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-02-11 09:34:50 +0000 |
commit | 7b7d17757177579319d2efa1fd94cea218ad8780 (patch) | |
tree | 111fd577d9a0e17c1c5cb7eee6eb8066d180a8d3 /test/files/pos/bug4188.scala | |
parent | e9f1ccb0308f207303af2507415379c4d8dbcd6a (diff) | |
download | scala-7b7d17757177579319d2efa1fd94cea218ad8780.tar.gz scala-7b7d17757177579319d2efa1fd94cea218ad8780.tar.bz2 scala-7b7d17757177579319d2efa1fd94cea218ad8780.zip |
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.
Diffstat (limited to 'test/files/pos/bug4188.scala')
-rw-r--r-- | test/files/pos/bug4188.scala | 6 |
1 files changed, 6 insertions, 0 deletions
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 => () } + } +} |