Skip to content

Commit

Permalink
Add testcase for issue ldc-developers#4759
Browse files Browse the repository at this point in the history
  • Loading branch information
kinke committed Oct 1, 2024
1 parent 9880a3f commit 9a2264b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/compilable/gh4759.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// RUN: %ldc -c %s

void func(void delegate())
{
enum ident(alias F) = __traits(identifier, __traits(parent, F));
func({ enum i = ident!({}); });
}

0 comments on commit 9a2264b

Please sign in to comment.