Tag: 布尔

布尔扩展函数

当我尝试创建扩展function设置布尔如下真假。 Boolean.setTrue(){ this = true } Boolean.setFalse(){ this = false } 它说预计variables 。 如何实现这一点。