提交 28e30374 编写于 作者: S Steffen Forkmann

check if we have an array

上级 cbaaae63
......@@ -8228,8 +8228,10 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
match expr.Expr with
| Expr.Val (d,_,_) when
HasHeadType cenv.g cenv.g.tcref_System_Collections_Generic_Dictionary d.Type ||
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 ||
HasHeadType cenv.g cenv.g.tcref_System_Collections_Generic_IDictionary typ ||
isArray1DTy cenv.g typ
->
error (NotAFunction(denv,overallTy,true,mExpr,mArg))
| _ -> error (NotAFunction(denv,overallTy,false,mExpr,mArg))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册