Skip to content

Commit

Permalink
adjust range reported in error
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme committed Jan 17, 2015
1 parent bff938f commit 68555a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fsharp/tc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8147,8 +8147,8 @@ and TcItemThen cenv overallTy env tpenv (item,mItem,rest,afterOverloadResolution
if nonNil otherDelayed then error(Error(FSComp.SR.tcInvalidAssignment(),mStmt))
UnifyTypes cenv env mStmt overallTy cenv.g.unit_ty
vref.Deref.SetHasBeenReferenced()
CheckValAccessible mStmt env.eAccessRights vref
CheckValAttributes cenv.g vref mStmt |> CommitOperationResult
CheckValAccessible mItem env.eAccessRights vref
CheckValAttributes cenv.g vref mItem |> CommitOperationResult
let vty = vref.Type
let vty2 =
if isByrefTy cenv.g vty then
Expand Down

0 comments on commit 68555a3

Please sign in to comment.