Remove AlternativeValueBase, per review comments on #2605. (#2606)

Also extend comment on `AlternativeSignature::static_type` as requested.
This commit is contained in:
Richard Smith
2023-02-16 11:15:13 -08:00
committed by GitHub
parent a3b342d8e5
commit 6037f9e622
8 changed files with 60 additions and 56 deletions
+2 -1
View File
@@ -82,7 +82,8 @@ void AbstractPattern::AppendElementsTo(
}
} else if (const auto* alt = dyn_cast<AlternativeValue>(value)) {
if (auto arg = alt->argument()) {
out.push_back(AbstractPattern(*arg, *alt->alternative().static_type()));
out.push_back(AbstractPattern(
*arg, *alt->alternative().parameters_static_type()));
}
}
}