【问题标题】:Disable compiler warnings for a specific file in ClojureScript在 ClojureScript 中禁用特定文件的编译器警告
【发布时间】:2018-07-25 05:50:56
【问题描述】:

我有一个文件定义了 map 之类的函数,我得到了 compiler warnings 之类的:

map already refers to: cljs.core/map being replaced by: 

所以我想禁用此警告,但我只想禁用此特定文件的警告。这可能吗?

【问题讨论】:

    标签: clojurescript


    【解决方案1】:

    您只能对整个项目禁用编译器警告。对此没有很好的控制。但是您可以更改您的代码,使其不会生成此警告:

    (ns testground.core
        (:refer-clojure :exclude [map]))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多