We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f72992 + 6a9af90 commit fc0800aCopy full SHA for fc0800a
1 file changed
src/fsharp/IlxGen.fs
@@ -6106,7 +6106,7 @@ and GenTypeDef cenv mgbuf lazyInitInfo eenv m (tycon:Tycon) =
6106
(match ilTypeDefKind with ILTypeDefKind.ValueType -> true | _ -> false) &&
6107
// All structs are sequential by default
6108
// Structs with no instance fields get size 1, pack 0
6109
- tycon.AllFieldsAsList |> List.exists (fun f -> not f.IsStatic)
+ tycon.AllFieldsAsList |> List.forall (fun f -> f.IsStatic)
6110
6111
isEmptyStruct && cenv.opts.workAroundReflectionEmitBugs && not tycon.TyparsNoRange.IsEmpty
6112
0 commit comments