You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fsharp/FSComp.txt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1313,3 +1313,5 @@ estApplyStaticArgumentsForMethodNotImplemented,"A type provider implemented GetS
1313
1313
3204,tcStructUnionMultiCase,"A union type which is a struct must have only one case."
1314
1314
3205,tcUseMayNotBeMutable,"This feature is deprecated. A 'use' binding may not be marked 'mutable'."
1315
1315
3206,CallerMemberNameIsOverriden,"The CallerMemberNameAttribute applied to parameter '%s' will have no effect. It is overridden by the CallerFilePathAttribute."
1316
+
3207,tcFixedNotAllowed,"Invalid use of 'fixed'. 'fixed' may only be used in a declaration of the form 'use x = fixed expr' where the expression is an array, the address of a field, the address of an array element or a string'"
1317
+
3208,tcCouldNotFindOffsetToStringData,"Could not find method System.Runtime.CompilerServices.OffsetToStringData in references when building 'fixed' expression."
if verboseOptimizationInfo then dprintn ("*** Binding "^v.LogicalName);
434
+
if verboseOptimizationInfo then dprintn ("*** Binding "+v.LogicalName);
435
435
letvval=if v.IsMutable then{vval with ValExprInfo=UnknownValue }else vval
436
436
letenv=
437
437
#if CHECKED
@@ -534,7 +534,7 @@ let TryGetInfoForEntity sv n =
534
534
| Some info -> Some (info.Force())
535
535
| None ->
536
536
if verboseOptimizationInfo then
537
-
dprintn ("\n\n*** Optimization info for submodule "^n^" not found in parent module which contains submodules: "^String.concat","(NameMap.domainL sv.ModuleOrNamespaceInfos));
537
+
dprintn ("\n\n*** Optimization info for submodule "+n+" not found in parent module which contains submodules: "+String.concat ","(NameMap.domainL sv.ModuleOrNamespaceInfos));
538
538
None
539
539
540
540
let recTryGetInfoForPath sv (p:_[])i =
@@ -558,7 +558,7 @@ let GetInfoForNonLocalVal cenv env (vref:ValRef) =
558
558
match structInfo.ValInfos.TryFind(vref)with
559
559
| Some ninfo -> snd ninfo
560
560
| None ->
561
-
//dprintn ("\n\n*** Optimization info for value "^n^" from module "^(full_name_of_nlpath smv)^" not found, module contains values: "^String.concat "," (NameMap.domainL structInfo.ValInfos));
561
+
//dprintn ("\n\n*** Optimization info for value "+n+" from module "+(full_name_of_nlpath smv)+" not found, module contains values: "+String.concat "," (NameMap.domainL structInfo.ValInfos));
562
562
//System.Diagnostics.Debug.Assert(false,sprintf "Break for module %s, value %s" (full_name_of_nlpath smv) n)
563
563
if cenv.g.compilingFslib then
564
564
match structInfo.ValInfos.TryFindForFslib(vref)with
@@ -1254,6 +1254,7 @@ let ValueIsUsedOrHasEffect cenv fvs (b:Binding,binfo) =
1254
1254
not(cenv.settings.EliminateUnusedBindings())||
1255
1255
isSome v.MemberInfo ||
1256
1256
binfo.HasEffect ||
1257
+
v.IsFixed ||
1257
1258
Zset.contains v (fvs())
1258
1259
1259
1260
let recSplitValuesByIsUsedOrHasEffect cenv fvs x =
0 commit comments