Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fsharp/tast.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4060,7 +4060,7 @@ and [<RequireQualifiedAccess>] AnonRecdTypeInfo =

/// Get the ILTypeRef for the generated type implied by the anonymous type
member x.ILTypeRef =
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
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
mkILTyRef(x.Assembly.ILScopeRef, ilTypeName)

static member NewUnlinked() : AnonRecdTypeInfo =
Expand Down
10 changes: 10 additions & 0 deletions tests/fsharpqa/Source/CodeGen/EmittedIL/Misc/AnonRecd.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


let main argv =
let mutable x = 1

let a = {| A = 1; B = 1 |}

x <- x + 1

0
Loading