forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementtopic:tasty/scala2Scala 2 implementation of TASTy unpickingScala 2 implementation of TASTy unpicking
Description
There is no reason why the return type of a function producing a union type can't be erased to its lub.
There is an issue however with supplying widened unions to dotty methods, unless more work is done to the compiler to enforce precision, such as adapting to something precise but is then erased, like scala.js union
Metadata
Metadata
Assignees
Labels
enhancementtopic:tasty/scala2Scala 2 implementation of TASTy unpickingScala 2 implementation of TASTy unpicking