当前版本的 Dart Editor 将按位异或运算符显示为not defined for class bool
not defined for class bool
我没有看到它被定义num.dart。
num.dart
前任:
bool x = a ^ b;
编辑器将“插入符”显示为未定义。
更新:Dart 的 api 规范仅允许对整数进行按位异或。我修复了我的代码以正确使用bools。
bool
dart dart-editor
dart ×1
dart-editor ×1