sigmastate-interpreter
sigmastate-interpreter copied to clipboard
Correct type inference for Option.None
Example expressions:
-
if(b.R5[Int].isDefined) {None} else {(pk, value)}. -
val noneInt: Option[Int] = None
SigmaTyper should be fixed, in particular method
def assignType(env: Map[String, SType], bound: SValue, expected: Option[SType] = None)
Hint, expected should be passed and used.
Isn't it frontend issue ? if so, why 6.0 milestone?