Multiple markers at this line - Unexpected tokens (use ';' to separate expressions on the same line) - Expecting ')' - No value passed for parameter voice - Unresolved reference: chactor
1 回答

慕標(biāo)琳琳
TA貢獻(xiàn)1830條經(jīng)驗(yàn) 獲得超9個(gè)贊
呃,這個(gè),應(yīng)該是這樣
1 | val box = Box( "5000" , "big" ) |
或者
1 | val box = Box(price = "5000" ,size = "big" ) |
盡量使用 val ,當(dāng)然這也根據(jù)實(shí)際情況,并且,不要使用Eclipse了,支持性不好,換 Idea 吧
- 1 回答
- 0 關(guān)注
- 1067 瀏覽
添加回答
舉報(bào)
0/150
提交
取消