JSC_INEXISTENT_PROPERTY_WITH_SUGGESTION is hidden if the inexistent property is set in unrelated code. #4164
Labels
internal-issue-created
An internal Google issue has been created to track this GitHub issue
triage-done
Has been reviewed by someone on triage rotation.
Hello, not sure if this is expected behavior.
Below code is minimal sample tested in ADVANCED mode on: https://closure-compiler.appspot.com/
This code has a typo and the compiler correctly points the error:
JSC_INEXISTENT_PROPERTY_WITH_SUGGESTION: Property scaleT never defined on SGlobal. Did you mean scale? at line 25 character 31
But if you are unlucky like me and have a second typo in other unrelated part of your code the warning goes away and no warning or error is printed. Here I put the second typo in a method of the class that is never called
What is interesting is that the compiler somehow knows that the output is undefined because is producing compiled code with NaN:
I was under the impression that the compiler warned me whenever an undeclared property of a @struct was tried to use.
The text was updated successfully, but these errors were encountered: