fmonniot / scala3mock

Mocking framework for Scala 3
https://francois.monniot.eu/scala3mock
Other
19 stars 1 forks source link

Support for inner trait #3

Open fmonniot opened 10 months ago

fmonniot commented 10 months ago

Scala3Mock current doesn't support mocking trait with an inner type. This is because the current macro will not dereference the type in the mock to the parent trait, I think.

Here is an example of such a case:

trait Test:
  trait Inner
  def returnInner(): Inner