mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix noImplicitAny check on ambient private getters (#33896)
This commit is contained in:
1 parent
3d130b7d5e
commit
e48cd3a101
5 files changed
+21
-1
No files matched your search
@@ -7436,7 +7436,9 @@ namespace ts {
|
||||
}
|
||||
else {
|
||||
Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function");
|
||||
errorOrSuggestion(noImplicitAny, getter!, Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol));
|
||||
if (!isPrivateWithinAmbient(getter!)) {
|
||||
errorOrSuggestion(noImplicitAny, getter!, Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol));
|
||||
}
|
||||
}
|
||||
return anyType;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user