Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6bfdeac

Browse files
committed
fix 362
1 parent1251430 commit6bfdeac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎src/fsharp/FSComp.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,3 +1341,4 @@ estApplyStaticArgumentsForMethodNotImplemented,"A type provider implemented GetS
13411341
3183,ppparsUnexpectedToken,"Unexpected token '%s' in preprocessor expression"
13421342
3184,ppparsIncompleteExpression,"Incomplete preprocessor expression"
13431343
3185,ppparsMissingToken,"Missing token '%s' in preprocessor expression"
1344+
3186,pickleMissingDefinition,"An error occurred while reading the F# metadata node at position %d in table '%s' of assembly '%s'. The node had no matching declaration. Please report this warning. You may need to recompile the F# assembly you are using."

‎src/fsharp/pickle.fs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,8 @@ let check (ilscope:ILScopeRef) (inMap : NodeInTable<_,_>) =
728728
for i=0to inMap.Count-1do
729729
letn= inMap.Get i
730730
ifnot(inMap.IsLinked n)then
731-
System.Diagnostics.Debug.Assert(false, sprintf"*** unpickle: osgn%d in table%s with IL scope%s had no matching declaration (was not fixed up)\nPlease report this warning. (Note for compiler developers: to get information about which item this index relates to, enable the conditional in Pickle.p_osgn_ref to refer to the given index number and recompile an identical copy of the source for the DLL containing the data being unpickled. A message will then be printed indicating the name of the item.\n" i inMap.Name ilscope.QualifiedName)
731+
warning(Error(FSComp.SR.pickleMissingDefinition i inMap.Name ilscope.QualifiedName, range0))
732+
// Note for compiler developers: to get information about which item this index relates to, enable the conditional in Pickle.p_osgn_ref to refer to the given index number and recompile an identical copy of the source for the DLL containing the data being unpickled. A message will then be printed indicating the name of the item.\n"
732733
#endif
733734

734735
letunpickleObjWithDanglingCcus file ilscope(iILModule:ILModuleDef)u(phase2bytes:byte[])=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp