3 ms·
The compiler prevents you from doing case x: Warble => modifyTheWargle(x) but it doesn't stop you from sending out a Wargle to the actor that only expects W
by morsch 11y ago
The compiler prevents you from doing
case x: Warble => modifyTheWargle(x)
but it doesn't stop you from sending out a Wargle to the actor that only expects Warbles.