google/closure-compiler

Cryptic "Bad Annotation" Error Message

开放

#2,489 创建于 2017年5月12日

 (1 条评论) (0 个反应) (0 位负责人)Java (1,197 个派生)batch import
P3help wanted

仓库指标

星标
 (7,176 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南