google / google/closure-compiler
f() gives error/warning 'must be called with a "this" type' when f is type {function(this:void)}
Open
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
Example:
https://closure-compiler-debugger.appspot.com/#input0%3D%252F**%2520%2540param%2520%257Bfunction(this%253Avoid)%257D%2520f%2520*%252F%250Afunction%2520callF(f)%2520%257B%250A%2520%2520%2520f()%253B%250A%257D%26input1%26conformanceConfig%26externs%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_SYMBOLS%3D1%26CHECK_TYPES%3D1%26CLOSURE_PASS%3D1%26FOLD_CONSTANTS%3D1%26LANG_IN_IS_ES6%3D1%26MISSING_PROPERTIES%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1%26TRANSPILE%3D1
Contributor guide
Assessment
This issue has not been assessed yet.