kongK
V2EX  ›  问与答

Swift Switch warning

  •  
  •   kongK · Aug 25, 2015 · 2410 views
    This topic created in 4033 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   ·   Privacy   ·   Solana   ·   3445 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    ♥ Do have faith in what you're doing.