@@ -8225,18 +8225,7 @@ and Propagate cenv overallTy env tpenv (expr: ApplicableExpr) exprty delayed =
82258225 | SynExpr.ArrayOrListOfSeqExpr _ ->
82268226 // 'delayed' is about to be dropped on the floor, first do rudimentary checking to get name resolutions in its body
82278227 RecordNameAndTypeResolutions_IdeallyWithoutHavingOtherEffects_Delayed cenv env tpenv delayed
8228-
8229- let flag =
8230- let typ = expr.Type
8231- isArray1DTy cenv.g typ ||
8232- if isAppTy cenv.g typ then
8233- let tcref = tcrefOfAppTy cenv.g typ
8234- let _, entityTy = generalizeTyconRef tcref
8235- let props = GetImmediateIntrinsicPropInfosOfType (None, AccessibleFromSomeFSharpCode) cenv.g cenv.amap range0 entityTy
8236- props |> List.exists (fun x -> x.PropertyName = "Item")
8237- else false
8238-
8239- error (NotAFunction(denv,overallTy,flag,mExpr,mArg))
8228+ error (NotAFunction(denv,overallTy,IsIndexerType cenv.g cenv.amap expr.Type,mExpr,mArg))
82408229 | _ ->
82418230 // 'delayed' is about to be dropped on the floor, first do rudimentary checking to get name resolutions in its body
82428231 RecordNameAndTypeResolutions_IdeallyWithoutHavingOtherEffects_Delayed cenv env tpenv delayed