Skip to content

Commit fc0800a

Browse files
committed
Merge branch 'fix-654' of https://github.com/kbattocchi/visualfsharp into kbattocchi-fix-654
2 parents 0f72992 + 6a9af90 commit fc0800a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fsharp/IlxGen.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6106,7 +6106,7 @@ and GenTypeDef cenv mgbuf lazyInitInfo eenv m (tycon:Tycon) =
61066106
(match ilTypeDefKind with ILTypeDefKind.ValueType -> true | _ -> false) &&
61076107
// All structs are sequential by default
61086108
// Structs with no instance fields get size 1, pack 0
6109-
tycon.AllFieldsAsList |> List.exists (fun f -> not f.IsStatic)
6109+
tycon.AllFieldsAsList |> List.forall (fun f -> f.IsStatic)
61106110

61116111
isEmptyStruct && cenv.opts.workAroundReflectionEmitBugs && not tycon.TyparsNoRange.IsEmpty
61126112

0 commit comments

Comments
 (0)