to
使用中缀形式可使代码更简单。
快速修复会将 to 替换为中缀形式。
示例:
fun foo(a: Int, b: Int) { val pair = a.to(b) }
在应用快速修复后:
fun foo(a: Int, b: Int) { val pair = a to b }