From be31240d98a4f05aaff24faed587eceaa49ec7d2 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 26 Jan 2026 22:53:46 +0000 Subject: [PATCH] Test aliasing function pointer type returning `typeof(return)` Closes #513. --- test/pass_files/declarations.d | 1 + 1 file changed, 1 insertion(+) diff --git a/test/pass_files/declarations.d b/test/pass_files/declarations.d index 942155d5..c7b038d9 100644 --- a/test/pass_files/declarations.d +++ b/test/pass_files/declarations.d @@ -105,6 +105,7 @@ void foo() { __traits(getMember, Foo, "Bar") fooBar; immutable int twice(int x) = 2 * x; + alias fn = extern(C) typeof(return) function(); } alias Mt1 = mixin("foo", ".", "bar");