google / google/closure-compiler
Cryptic "Bad Annotation" Error Message
Open
help wanted
P3
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
A variable assignment with 2 `@extends` annotations gave this warning using NTI:
`WARNING - Bad type annotation. type annotation incompatible with other annotations. See https://github.com/google/closure-compiler/wiki/Bad-Type-Annotation for more information.
`
That could be a lot better (more helpful).
```js
/**
* @constructor
* @extends {Polymer.Element}
* @extends {ObservableModelsElement}
*/
const CardElement = observableModelsMixin(cardUtilsMixin(Polymer.GestureEventListeners(Polymer.Element)));
```
Contributor guide
Assessment
This issue has not been assessed yet.