google/closure-compiler

Cryptic "Bad Annotation" Error Message

Open

#2,489 opened on May 12, 2017

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

Repository metrics

Stars
 (7,176 stars)
PR merge metrics
 (Avg merge 3d 4h) (1 merged PR in 30d)

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