5 ms·
// bar.foo is number // getFoo() returns a number bar.foo += getFoo(); // getFoo() has a bug and now returns a string. Nothing fails. If getFoo() had a retu
by WirelessGigabit 4y ago
// bar.foo is number
// getFoo() returns a number
bar.foo += getFoo();
// getFoo() has a bug and now returns a string.
Nothing fails. If getFoo() had a return type of number this wouldn’t be the case.