google/closure-compiler

Cryptic "Bad Annotation" Error Message

Open

#2.489 aberto em 12 de mai. de 2017

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

Guia do colaborador