kongK
V2EX  ›  问与答

Swift Switch warning

  •  
  •   kongK · Aug 25, 2015 · 2364 views
    This topic created in 3998 days ago, the information mentioned may be changed or developed.

    用 swift 中的 swith 语句 写的时候初见这个警告 Switch condition evaluates to a constant ,将声明的变量放到函数外面就没有警告了,不知道什么原因

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3076 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 12:52 · PVG 20:52 · LAX 05:52 · JFK 08:52
    ♥ Do have faith in what you're doing.