Comments (8)
Now when I think about it - maybe it should work that way? I guess the issue is Scala 3 allowing that ...
I was wrong (from equals Javadoc):
The equals method implements an equivalence relation on non-null object references:
It is symmetric: for any non-null reference values x and y, x. equals(y) should return true if and only if y. equals(x) returns true.
from zio.
It seems like c.inferImplicitValue
does not work for function B
=> A
if they are descendants.
https://docs.scala-lang.org/overviews/quasiquotes/syntax-summary.html#types - tq
in ZIO's case return Tree which returns null for .tpe
from zio.
Hey @andrzejressel, I was going to link this issue on why I think this behaviour is correct for Scala 2 but not for Scala 3, but then I realised you were the one that opened it π
Why do you think that in this case Scala 3's behaviour is correct but not Scala 2's?
from zio.
They are both a bit scuffed - basically I believe that all directly related classes should be comparable in any order.
In Scala 2.13 it didn't work because of bug with implicit conversion finding, in Scala 3 it does not work because this conversion is not implemented for equals (only for >
>=
<
<=
comparisons).
EDIT: Even equals JavaDoc agrees with that - comparing parent to child should (must?) return the same as comparing child to parent.
from zio.
/bounty $75
from zio.
π $75 bounty β’ ZIO
Steps to solve:
- Start working: Comment
/attempt #8874
with your implementation plan - Submit work: Create a pull request including
/claim #8874
in the PR body to claim the bounty - Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts
Thank you for contributing to zio/zio!
Add a bounty β’ Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
π’ @andrzejressel | #8923 |
from zio.
π‘ @andrzejressel submitted a pull request that claims the bounty. You can visit your bounty board to reward.
from zio.
ππ @andrzejressel has been awarded $75! ππ
from zio.
Related Issues (20)
- ZLayerCompanionVersionSpecific.derive has a wrong signature confusing IntelliJ IDEA HOT 8
- `ZIO#someOrElse` does not work with covariant type constructors applied to `Nothing` HOT 8
- `TestArrow::withLocation` and `TestArrow::meta` cannot override a TestArrows location. HOT 6
- ZPipeline.rechunk could be optimized HOT 5
- ZIOΒ environment signature resolution is slow in Scala 3 HOT 4
- Unexpected behaviour with TestRandom HOT 1
- Unable to run JCStress tests
- zio 2.1.2 issue with stuck tests HOT 8
- Incorrect layer type when using a contravariant type parameter HOT 2
- ZIO Config Guide Invalid link HOT 4
- assertTrue primitive comparision regression (Scala 2) HOT 3
- 2.1.3 regression of mapZIOPar(Unordered) with Int.MaxValue level of parallelism HOT 17
- .provide triggers WartRemover ExplicitImplicitTypes error in ZIO 2.1.3
- Scala Native CI takes too long to complete, degrading DX HOT 5
- Inconsistent behaviour of `provideLayer` pre/post ZIO 2.0.7 HOT 4
- Unintuitive behaviour of `checkAll` HOT 1
- 2.1.3 regression ZLayer.Debug "You have provided more than is required"
- `Runtime.unsafe.fromLayer` deadlocks with intersection Layers HOT 2
- ZPipeline.fromFunction combined with provideEnvironment leads to an internal assert in ZEnvironment HOT 8
- Flaky test for `TestClock`
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 zio.