Support explicit generic parameters in function parameter lists (#1259)

This commit is contained in:
Richard Smith
2022-05-12 12:39:51 -07:00
committed by GitHub
parent 451004a44e
commit 27c8d1fc12
6 changed files with 151 additions and 53 deletions
+3 -2
View File
@@ -280,10 +280,11 @@ void Value::Print(llvm::raw_ostream& out) const {
case Value::Kind::FunctionType: {
const auto& fn_type = cast<FunctionType>(*this);
out << "fn ";
if (!fn_type.deduced().empty()) {
if (!fn_type.deduced_bindings().empty()) {
out << "[";
unsigned int i = 0;
for (Nonnull<const GenericBinding*> deduced : fn_type.deduced()) {
for (Nonnull<const GenericBinding*> deduced :
fn_type.deduced_bindings()) {
if (i != 0) {
out << ", ";
}