79090127

Date: 2024-10-15 13:22:08
Score: 0.5
Natty:
Report link

I got this error in Scala 3 when using the extension syntax inside a trait. The classes extending that trait cannot be mocked. Changing the syntax to the good old implicit class fixed the issue.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Mahdi