google / google/closure-compiler

Cryptic "Bad Annotation" Error Message

Open
#2,489 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.