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

Also extend comment on `AlternativeSignature::static_type` as requested.
This commit is contained in:
Richard Smith authored and GitHub committed 2023-02-16 11:15:13 -08:00
1 parent a3b342d8e5
commit 6037f9e622
8 files changed
+60 -56

No files matched your search

+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()));
}
}
}