![](/img/trans.png)
[英]Kotlin 2 Errors: error: unexpected tokens (use ';' to separate expressions on the same line) AND error: smart cast to 'Int' is impossible, because
[英]Unexpected tokens (use ; to seperate expressions on the same line) in kotlin
我在我的android項目中使用kotlin,這是在java上開發的,我在服務層使用了kotlin數據類
現在我想在序列中添加備用標簽
@SerializedName(value="name", alternate={"person", "user"}) val title:String,
這給了我意想不到的令牌問題,它似乎來自kotlin方面
這似乎是kotlin問題可以有人指出我的問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.