google/closure-compiler

Cryptic "Bad Annotation" Error Message

Open

#2,489 建立於 2017年5月12日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Java (7,176 star) (1,197 fork)batch import
P3help wanted

描述

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

貢獻者指南