BenoƮt
09/09/2021, 9:47 AMraulraja
09/09/2021, 8:37 PMmain
as this is something the lang may get in an untagged version and the way we had to make it work as a plugin is not optimal. To implement this in a good way weād need access to parts of compiler services that are currently not exposed to plugins like the TypeChecker. We are currently focusing in type refinements and improving the Proofs plugin to be focused on compile time DI but w are not really gonna attempt union types are the moment. The IDE resolution part is not possible without an IDEA plugin at the moment and we are waiting for FIR and a stable phased compiler plugin api to take on more ambitious projects like unions and other type system related features.BenoĆ®t
09/09/2021, 9:01 PMraulraja
09/09/2021, 10:10 PMjimn
10/11/2021, 11:05 AMBenoƮt
10/22/2021, 2:35 PMsealed class MyUnion {
class StringW(val value: String) : MyUnion()
class IntW(val value: Int) : MyUnion()
}
But this gets very verbose very quicklyjimn
10/23/2021, 8:23 PMBenoƮt
10/25/2021, 8:48 PMwhen
statements, which you would lose with such an approach