EindbaasExpress / handsonscala-issuemigrator

Part of the HandsOnScala Course
0 stars 0 forks source link

Recursive data types #80

Open EindbaasExpress opened 2 years ago

EindbaasExpress commented 2 years ago

It appears to me that recursive data types are not well-supported. The following code leads to an infinite loop in the typer phase of the Scala compiler:

import upickle._
sealed case class IntTree(value: Int, children: List[IntTree])
read[IntTree]("")

ID: 23 Original Author: tindzk