fix: Fix type for functor [fixes LNG-119] (#677)

This commit is contained in:
Dima 2023-02-28 14:56:49 +07:00 committed by GitHub
parent 9074381b89
commit bb24a63abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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)
}