Join GitHub today
Suggest to use self for fake-self from other languages #54694
Click to expand the log.
This is pretty neat! Could you quickly draft out how hard it'd be to see if
self.foo actually exists when the user wrote
this.foo? Not only that, if that is the case then it'd be a great idea to actually accept the code (while emitting the error) so that we avoid knock down effects from the incorrect code, although it seems that the scope is already marked as
TyErr, so the output already looks good enough.
r=me with the test that @killercup pointed out fixed.