mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-12 09:45:32 +00:00
fix: Fix type for functor [fixes LNG-119] (#677)
This commit is contained in:
parent
9074381b89
commit
bb24a63abb
@ -41,6 +41,12 @@ object ApplyFunctorRawInliner extends Logging {
|
||||
VarModel(apName, canonType, Chain.one(functorModel)),
|
||||
CanonicalizeModel(v, CallModel.Export(apName, canonType)).leaf
|
||||
)
|
||||
case CanonStreamType(el) =>
|
||||
val arrType = ArrayType(el)
|
||||
(
|
||||
VarModel(apName, arrType, Chain.one(functorModel)),
|
||||
FlattenModel(v, apName).leaf
|
||||
)
|
||||
case _ =>
|
||||
(VarModel(apName, bt, Chain.one(functorModel)), FlattenModel(v, apName).leaf)
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ object MakeRes {
|
||||
orInit(currentPeerId),
|
||||
exportTo
|
||||
).leaf
|
||||
case FlattenModel(operand@VarModel(_, CanonStreamType(el), _), assignTo) =>
|
||||
case FlattenModel(operand @ VarModel(_, CanonStreamType(el), _), assignTo) =>
|
||||
ApRes(operand, CallModel.Export(assignTo, ArrayType(el))).leaf
|
||||
case FlattenModel(operand, assignTo) =>
|
||||
ApRes(operand, CallModel.Export(assignTo, operand.`type`)).leaf
|
||||
|
Loading…
Reference in New Issue
Block a user