mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Support explicit generic parameters in function parameter lists (#1259)
This commit is contained in:
@@ -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 << ", ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user