We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentcbaaae6 commit28e3037Copy full SHA for 28e3037
src/fsharp/TypeChecker.fs
@@ -8228,8 +8228,10 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
8228
8229
match expr.Expr with
8230
| Expr.Val (d,_,_) when
8231
- HasHeadType cenv.g cenv.g.tcref_System_Collections_Generic_Dictionary d.Type ||
8232
- HasHeadType cenv.g cenv.g.tcref_System_Collections_Generic_IDictionary d.Type
+ let typ = d.Type
+ HasHeadType cenv.g cenv.g.tcref_System_Collections_Generic_Dictionary typ ||
8233
+ HasHeadType cenv.g cenv.g.tcref_System_Collections_Generic_IDictionary typ ||
8234
+ isArray1DTy cenv.g typ
8235
->
8236
error (NotAFunction(denv,overallTy,true,mExpr,mArg))
8237
| _ -> error (NotAFunction(denv,overallTy,false,mExpr,mArg))