请问一下各位
小弟在scala中使用redis的library
https://github.com/xetorthio/jedis
其中 ScanParams 中有一个method的名称叫做match
与scala中的关键字重复了
请问这时候要如何处理?
因为看来编译器把这个match当成语法中的match了
我写法如下
val params = new ScanParams()
params.match(kw)
错误讯息
error: identifier expected but 'match' found.
error: '{' expected but '(' found.