File name inspection doesn't appear to work when there is a companion

It seems like the File Name Inspection isn't working if a class has a companion object.

File is named Foo.scala
class is Bar notice the Inspection:
Screenshot - 11122014 - 02:03:25 PM.png

Adding a companion to Bar causes the inspection to stop working:
Screenshot - 11122014 - 02:03:56 PM.png

0
2 comments
Avatar
Permanently deleted user

Hi, Benjamin,

Thanks for reporting. This case indeed was not handled, so I fixed it.
For such kind of bugs and suggestions there is a better place:
https://youtrack.jetbrains.com/issues/SCL
Feedback is very appreciated.

0

Oh ok thank you.

0

Please sign in to leave a comment.