Skip to content

Infinite loop in TypeTestsCasts #17435

Closed
@WojciechMazur

Description

@WojciechMazur

Compiler version

Needs minimization based on Open Community Build plokhotnyuk/jsoniter-scala v2.23.0 Open CB logs

Mentioned during meating that this PR might be responsible: #17382

Output (click arrow to expand)

Error:  ## Exception when compiling 12 sources to /build/repo/jsoniter-scala-macros/jvm/target/scala-3.3.1-RC1-bin-20230504-0e00420-NIGHTLY/test-classes
Error:  java.lang.StackOverflowError
Error:  dotty.tools.dotc.core.Types$Type.dealias(Types.scala:1409)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.rec$1(Space.scala:617)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.decompose(Space.scala:678)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$Parts$.unapply(Space.scala:697)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.rec$1(Space.scala:633)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.decompose(Space.scala:678)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$Parts$.unapply(Space.scala:697)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.rec$1(Space.scala:633)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.decompose(Space.scala:678)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$Parts$.unapply(Space.scala:697)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.rec$1(Space.scala:633)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.decompose(Space.scala:678)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$Parts$.unapply(Space.scala:697)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.rec$1(Space.scala:633)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.decompose(Space.scala:678)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$Parts$.unapply(Space.scala:697)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.rec$1(Space.scala:638)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$.decompose(Space.scala:678)
Error:  dotty.tools.dotc.transform.patmat.SpaceEngine$Parts$.unapply(Space.scala:697)
Error:  dotty.tools.dotc.transform.patmat.Typ.decompose(Space.scala:105)
Error:  dotty.tools.dotc.transform.patmat.Typ.canDecompose(Space.scala:99)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:149)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1(TypeTestsCasts.scala:154)
Error:  dotty.tools.dotc.transform.TypeTestsCasts$.isCheckDefinitelyFalse$1$$anonfun$2(TypeTestsCasts.scala:154)
Error:  scala.collection.immutable.List.forall(List.scala:386)
...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions