Skip to content

Commit 4ab75a7

Browse files
dsymeKevinRansom
authored andcommitted
Fix debugging of code using Anonymous records (#6608)
* fix debugging * add testing * add testing
1 parent 028e1df commit 4ab75a7

File tree

5 files changed

+691
-38
lines changed

5 files changed

+691
-38
lines changed

src/fsharp/tast.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4060,7 +4060,7 @@ and [<RequireQualifiedAccess>] AnonRecdTypeInfo =
40604060

40614061
/// Get the ILTypeRef for the generated type implied by the anonymous type
40624062
member x.ILTypeRef =
4063-
let ilTypeName = sprintf "<>f__AnonymousType%s%u`%d'" (match x.TupInfo with TupInfo.Const b -> if b then "1000" else "") (uint32 x.Stamp) x.SortedIds.Length
4063+
let ilTypeName = sprintf "<>f__AnonymousType%s%u`%d" (match x.TupInfo with TupInfo.Const b -> if b then "1000" else "") (uint32 x.Stamp) x.SortedIds.Length
40644064
mkILTyRef(x.Assembly.ILScopeRef, ilTypeName)
40654065

40664066
static member NewUnlinked() : AnonRecdTypeInfo =
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
3+
let main argv =
4+
let mutable x = 1
5+
6+
let a = {| A = 1; B = 1 |}
7+
8+
x <- x + 1
9+
10+
0

0 commit comments

Comments
 (0)