Commit 7ee4a505 authored by Kenton Varda's avatar Kenton Varda

Fix occasional evolution-test failure caused by List(Bool)->List(struct)…

Fix occasional evolution-test failure caused by List(Bool)->List(struct) upgrades no longer being allowed.
parent 3a4203b7
......@@ -336,6 +336,9 @@ static ChangeInfo fieldUpgradeList(Declaration::Builder decl, uint& nextOrdinal,
if (nameText == "StructType" || nameText.endsWith("Struct")) {
return { NO_CHANGE, "Upgrade primitive list to struct list, but it was already a struct list."};
}
if (nameText == "Bool") {
return { NO_CHANGE, "Upgrade primitive list to struct list, but bool lists can't be upgraded."};
}
relativeName.setValue(kj::str(nameText, "Struct"));
return { COMPATIBLE, "Upgrade primitive list to struct list" };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment