[wavesplatform/Waves] NODE-753-allow-unions-in-pattern-matching (#1140)

potan commented on this pull request.

> @@ -16,8 +16,8 @@ object CompilerContext {

val empty = CompilerContext(Map.empty, Map.empty, Map.empty, 0)

— def fromEvaluationContext(ctx: EvaluationContext): CompilerContext = {
+ def fromEvaluationContext(ctx: EvaluationContext, types: Map[String, PredefBase]): CompilerContext = {

CompilerContext contains union types defined on compile time but erased in AST.

Добавить комментарий