You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class X {
public longName = 10;
public otherName = 11;
public do(){
this.lognName = 20;
}
}
Currently compilation fails with the message:
Property 'lognName' does not exist on the type 'X'.
In case when a variable is misspelled, the error is even less helpful:
public longMethod(){
let firstVariable = 10;
let secondVariable = "hello,world";
//lots of code here
fristVariable = 20;
}
Cannot find name 'fristVariable'.
It could offer variable/property suggestion, like:
Cannot find name 'fristVariable'. Did you mean 'firstVariable'?
For example, Rust compiler (1.16) would suggest an existing variable that most resembles the misspelled one, based on Levenstein distance, if I'm correct.