Comments (2)
Looks like this is working as intended: The first occurrence of or
has operands of type int
, hence |
could be used; the second occurrence has operands of type bool
, hence ||
could be used. It is true that |
is defined for the type bool
today, but the vastly most common case is probably that a developer who writes or
between two boolean expressions would want to use ||
rather than |
.
from sdk.
"is written" should be written as "should be written" or "must be written".
"Is written", as written in the dart error message, doesn't have the intended modality.
The issue is small and rare, and I might have been the only user who has ever seen this message though :-)
from sdk.
Related Issues (20)
- Accessing privates through a prefixed import of the current library doesn't work HOT 13
- Finalizer is called twice for the same object. HOT 4
- Potential null check issue in code compiled for the web HOT 2
- flow_graph_checker.cc: 255: error: expected: !flow_graph_->function().ForceOptimize() in DebugSIMRISCV32 mode HOT 1
- Conditionals and switch expressions never unify to FutureOr even with explicit result type HOT 6
- [CP] DevTools 2.34.2 HOT 2
- `ExternalDartReference.toDartObject` and `Object.toExternalReference` should support a `null` receiver HOT 2
- Extension types on JS types generate suboptimal method invocations HOT 1
- [dart2wasm] Getting `illegal cast`, only when compiled with `-O0` HOT 4
- Using `ExternalDartReference` as a function parameter is expensive HOT 8
- Crash in Tween.lerp (AOT) HOT 37
- Analyzer and compiler disagree about Future<T>? type parameter inference HOT 6
- `writeln` is not thread-safe HOT 2
- [dart2wasm] Asynchronous exception catching isn't working properly HOT 2
- const factory with redirecting constructor will not show up in find references
- `dart run --resident` fails obscurely `Can't load Kernel binary: Invalid SDK hash` when dart is updated.
- None of the patterns in the switch expression the matched after hot-reload HOT 2
- "dart info" reports Windows 11 as Windows 10 HOT 11
- Lack of documentation for migration from js to js_interop HOT 1
- [dart2js] Inconsistent `.call` results with dart2js-production-linux-d8 configuration HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.