Skip to content

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

Merged
merged 6 commits into from
Dec 20, 2019
Merged

Conversation

IgorFedchenko
Copy link
Contributor

Related to #108

Actually, config.ToString() was throwing exception always, fixed now.

@@ -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; }
Copy link
Contributor Author

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);
Copy link
Contributor Author

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.

@Aaronontheweb Aaronontheweb merged commit 526e6de into akkadotnet:dev Dec 20, 2019
@IgorFedchenko IgorFedchenko deleted the fix/to-string branch December 21, 2019 12:13
Aaronontheweb pushed a commit that referenced this pull request Dec 27, 2019
* Fixed config.ToString indent exception

* Minor warning fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants