This repository has been archived by the owner on May 30, 2023. It is now read-only.
os-lib typing issues #13
Labels
intent:investigate-behavior
You have noticed a behavior that may or may not constitute an issue and want to return to it later
Typing Issues
Reproduction
Both available at https://github.com/lihaoyi/os-lib/tree/d7746195925f000c57769ef06c417564def52ac3/.
To reproduce:
git clone https://github.com/lihaoyi/os-lib.git && cd os-lib && git checkout d7746195925f000c57769ef06c417564def52ac3
build.sc
:sed 's/Cross[OsModule]("2.12.7", "2.13.0")/Cross[OsModule]("2.12.7", "2.13.0", "0.16.0-RC3")/g'
21-23
sed s/def ivyDeps = Agg(ivy"com.lihaoyi::geny:0.1.8")/def ivyDeps = Agg(ivy"com.lihaoyi:geny_2.12:0.1.8")
mill os[0.16.0-RC3].test
Typing
if
Location: ReadWriteOps.scala:31
Typing
if
clauseThe
if
branch’s type:The
else
branch’s type:The type of
permArray
gets inferred as (array of):The above is the same encoding used in previous version of opaque types meant to say that the type in question is equal to both the
if
branch’s type and theelse
branch’s type.Compiles fine under Scala 2. Should it though?
Fix:
Overloads
Location: ExampleTests.scala:16
The context:
The fix:
The text was updated successfully, but these errors were encountered: