Closed Daenyth closed 4 years ago
So in Scala if an implicit argument is missing, it will still compile and run? In my head I have that this would already fail and therefore Im a bit confused with this PR 🙂
@milanvdm No, it would fail - and that's the point, I want it to fail. It's supposed to, and it didn't fail before
This adds a constraint that the M
(mat value type) of the Flow
that the dsl method wants to act on, must be statically proven to be NotUsed
, or the code won't compile. If you look at the added test, that test would fail without the ev
implicit change.
(and likely prevent runtime ClassCastException also)
cc @milanvdm