This feels more like a lint rule than a compiler error. We should move it to bslint. 