google/closure-compiler

Cryptic "Bad Annotation" Error Message

Aperta

#2489 aperta il 12 mag 2017

 (1 commento) (0 reazioni) (0 assegnatari)Java (1197 fork)batch import
P3help wanted

Metriche repository

Star
 (7176 stelle)
Metriche merge PR
 (Merge medio 3g 4h) (1 PR mergiata in 30 g)

Descrizione

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

Guida contributor