fix lambda resolving (#519)

This commit is contained in:
Dima 2022-06-10 10:45:17 +03:00 committed by GitHub
parent bc55055cfe
commit 0bde766832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,12 +123,12 @@ case class VarModel(name: String, baseType: Type, lambda: Chain[LambdaModel] = C
res <- two(variable)
<- variable
*/
case vm @ VarModel(nn, _, _) if nn == name => deriveFrom(vm)
case vm @ VarModel(nn, _, _) if nn == name => deriveFrom(vv.deriveFrom(vm))
// it couldn't go to a cycle as long as the semantics protects it
case _ =>
n.resolveWith(vals) match {
case nvm: VarModel =>
deriveFrom(nvm)
deriveFrom(vv.deriveFrom(nvm))
case valueModel =>
if (lambda.nonEmpty)
logger.error(