-
Notifications
You must be signed in to change notification settings - Fork 40
Fix config.ToString #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix config.ToString #143
Conversation
@@ -19,7 +19,7 @@ public sealed class HoconImmutableLiteral : HoconImmutableElement, IEquatable<Ho | |||
{ | |||
public static readonly HoconImmutableLiteral Null = HoconImmutableLiteral.Create(null); | |||
|
|||
public string Value { get; } | |||
public new string Value { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not related, but fixes annoying compiler warning
@@ -681,7 +681,7 @@ internal void ReParent(HoconValue value) | |||
/// <returns>A HOCON string representation of this <see cref="HoconValue"/>.</returns> | |||
public override string ToString() | |||
{ | |||
return ToString(0, 2); | |||
return ToString(1, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like someone changed ToString
implementation during debugging something and did not update this ToString
overload.
* Fixed config.ToString indent exception * Minor warning fix
Related to #108
Actually,
config.ToString()
was throwing exception always, fixed now.