Compiler cannot identify the equivalence of two abstract types that resolves to identical symbol #12046
Labels
dealias
compiler isn't dealiasing when it should, or vice versa
dependent types
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
Milestone
(Original post: https://stackoverflow.com/questions/62478001/in-scala-how-to-instruct-the-compiler-to-realise-the-equivalence-of-two-abstrac)
reproduction steps
using Scala (2.12.11, 2.13.2),
problem
if I move:
to be under
Super2
it will compile successfully.the path-dependent type resolver behave inconsistently just for this case. My questions are:
How to visualise the type representation of abstract types? (e.g. printing a tree of all supertypes, constraints & type parameters etc.)
What is the root cause that cause this problem, can it be identified by the used visualisation?
The text was updated successfully, but these errors were encountered: