google/closure-compiler

Cryptic "Bad Annotation" Error Message

Open

#2489 opened on May 12, 2017

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (7,176 stars) (1,197 forks)batch import
P3help wanted

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).

/**
  * @constructor
  * @extends {Polymer.Element}
  * @extends {ObservableModelsElement}
  */
const CardElement = observableModelsMixin(cardUtilsMixin(Polymer.GestureEventListeners(Polymer.Element)));

Contributor guide