Skip to content

Commit 7c28ebd

Browse files
Fix issue 16707 (#3516)
* Fix issue 16707 * Update template.dd * Update template.dd
1 parent 27d8c86 commit 7c28ebd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/template.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,15 +892,15 @@ $(H4 $(LNAME2 homogeneous_sequences, Homogeneous Sequences))
892892

893893
template print(args...) // args must be a ValueSeq
894894
{
895-
void f()
895+
void print()
896896
{
897897
writeln("args are ", args);
898898
}
899899
}
900900

901901
void main()
902902
{
903-
print!(1, 'a', 6.8).f(); // prints: args are 1a6.8
903+
print!(1, 'a', 6.8)(); // prints: args are 1a6.8
904904
}
905905
---
906906
)
@@ -913,15 +913,15 @@ $(H4 $(LNAME2 homogeneous_sequences, Homogeneous Sequences))
913913

914914
template print(Types...) // Types must be a TypeSeq
915915
{
916-
void f(Types args) // args is a ValueSeq
916+
void print(Types args) // args is a ValueSeq
917917
{
918918
writeln("args are ", args);
919919
}
920920
}
921921

922922
void main()
923923
{
924-
print!(int, char, double).f(1, 'a', 6.8); // prints: args are 1a6.8
924+
print!(int, char, double)(1, 'a', 6.8); // prints: args are 1a6.8
925925
}
926926
---
927927
)

0 commit comments

Comments
 (0)