Fix: assertion message in indent manipulation of struct initializer
This commit is contained in:
parent
ac8e34815f
commit
06881d8654
|
@ -1561,7 +1561,7 @@ private:
|
||||||
else if (astInformation.structInfoSortedByEndLocation
|
else if (astInformation.structInfoSortedByEndLocation
|
||||||
.canFind!(st => st.startLocation < current.index && current.index < st.endLocation)) {
|
.canFind!(st => st.startLocation < current.index && current.index < st.endLocation)) {
|
||||||
immutable l2 = indents.indentToMostRecent(tok!"{");
|
immutable l2 = indents.indentToMostRecent(tok!"{");
|
||||||
assert(l2 != -1);
|
assert(l2 != -1, "Recent '{' is not found despite being in struct initializer");
|
||||||
indentLevel = l2 + 1;
|
indentLevel = l2 + 1;
|
||||||
}
|
}
|
||||||
else if (config.dfmt_compact_labeled_statements == OptionalBoolean.f
|
else if (config.dfmt_compact_labeled_statements == OptionalBoolean.f
|
||||||
|
|
Loading…
Reference in New Issue