ImmutableObjectGraph icon indicating copy to clipboard operation
ImmutableObjectGraph copied to clipboard

Missing using ImmutableObjectGraph when model has ImmutableList<T> fields

Open israellot opened this issue 6 years ago • 1 comments

It seems the generated code uses a extension method ResetContents that requires using ImmutableObjectGraph; which is not present on the generated file. It happens when use fields of type ImmutableList<T>

israellot avatar Aug 07 '19 10:08 israellot

using ImmutableObjectGraph to original source files solve the compilation error, but is not required on original source files since the [GenerateImmutable] attribute lives in ImmutableObjectGraph.Generation and VS can remove the unused directive on cleanup.

israellot avatar Aug 07 '19 10:08 israellot