Skip to content

Commit be31240

Browse files
committed
Test aliasing function pointer type returning typeof(return)
Closes #513.
1 parent 6b348eb commit be31240

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/pass_files/declarations.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ void foo()
105105
{
106106
__traits(getMember, Foo, "Bar") fooBar;
107107
immutable int twice(int x) = 2 * x;
108+
alias fn = extern(C) typeof(return) function();
108109
}
109110

110111
alias Mt1 = mixin("foo", ".", "bar");

0 commit comments

Comments
 (0)