Swift: Unary operator '++' cannot be applied to an operand of type '@lvalue Int'


Swift error:
Unary operator '++' cannot be applied to an operand of type '@lvalue Int'

Solution:
-- and ++ have been removed from Swift 3.

change to:

var a:Int=0;
a+=1;
print(a)

output:
1

留言

這個網誌中的熱門文章

最爛的銀行服務-玉山銀行

Mark App Design Apps - Terms and Privacy Policy (服務條款,隱私權政策)

SMR疊瓦式hdd致命缺陷被解決????!!!

ios app 上架時app icon要注意事項

更改google drive預設存放目錄位置Change Google Drive Default Folder Location in Windows

舊有app在Android 12 閃退問題& app Splash screens

google play 正式發布前測試報告...非常好用.

app bundle and bundletool. 關於aab安裝問題

關於google play console app應用程式簽署

Google Play badge徽章產生器