stage2: add compiler test to ensure typed null doesn't coerce to any

In stage1, this behavior was allowed (by accident?) and also
accidentally exercised by the behavior test changed in this commit. In
discussion on Discord, Andrew decided this should not be allowed in
stage2 since there is currently on real world reason to allow this
strange edge case.

I've added the compiler test to solidify that this behavior should NOT
occur and updated the behavior test to the new valid semantics.
7ec2261dbfMitchell Hashimoto committed on 3/13/2022, 3:03:01 AM· committed by Andrew Kelleyparent804b82b
2 files changedLine totals unavailable