Skip to content

Commit a3393ed

Browse files
committed
Fix formatting of cpp_dependent_type
Note that `cpp_dependent_type` is currently never generated, so it is not tested. Fixes #148.
1 parent 34e7bb4 commit a3393ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cpp_type.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ void write_template_instantiation(code_generator::output& output,
491491

492492
void write_dependent(code_generator::output& output, const cpp_dependent_type& type)
493493
{
494-
output << token_seq(type.name());
494+
output << keyword("typename") << whitespace;
495+
detail::write_type(output, type.dependee(), "");
496+
output << punctuation("::") << identifier(type.name());
495497
}
496498

497499
void write_unexposed(code_generator::output& output, const cpp_unexposed_type& type)

0 commit comments

Comments
 (0)