No error message for wrong method signatures

Hello,

I'm using the Ultimate edition with the scala plugin. I'm not getting any error messages when using wrong method signatures (e.g. the wrong type like an Int instead of a String etc).

Is that a known limitation/error or is there an option which needs to be activated?

Here is an example which doesn't trigger the IDE error message (but the compiler throws an error)

case class Message(text: String = "Some")
def say_hello(msg: Message) {println("hello " + msg.text)}
say_hello(123) // doesn't show an error message in IDEA



Thanks for your help.

Regards,
F
2 comments
Comment actions Permalink

Please enable Type-aware hihghlighting. It's "[_]" icon in right bottom corner.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

thanks, I didn't had the option in the IDE visible in the bottom-right corner.

After adding the facet in the module settings, it appeared in the bottom-right corner, works fine now.

Regards,

Fabian

0

Please sign in to leave a comment.