We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
3.1.0
trait Foo: def foo: Int trait Bar: def bar: Int given (Foo & Bar) with def foo = 1 def bar = 2
compilation error
Foo & Bar is not a class type
I think something like
Intersection type cannot be used with given
would be clearer