Skip to content

Commit

Permalink
Make Null and Computed readonly values (#413)
Browse files Browse the repository at this point in the history
Small fix that these two special values should have been marked readonly
so users don't mutate them.
  • Loading branch information
Frassle authored Nov 27, 2024
1 parent f7b4969 commit 8933088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/Pulumi/Provider/PropertyValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ private enum SpecialType
IsComputed,
}

public static PropertyValue Null = new PropertyValue(SpecialType.IsNull);
public static PropertyValue Computed = new PropertyValue(SpecialType.IsComputed);
public static readonly PropertyValue Null = new PropertyValue(SpecialType.IsNull);
public static readonly PropertyValue Computed = new PropertyValue(SpecialType.IsComputed);

public PropertyValue(bool value)
{
Expand Down

0 comments on commit 8933088

Please sign in to comment.