Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkage (extern) ignored in alias declaration #18616

Open
dlangBugzillaToGithub opened this issue Jun 25, 2013 · 2 comments
Open

Linkage (extern) ignored in alias declaration #18616

dlangBugzillaToGithub opened this issue Jun 25, 2013 · 2 comments

Comments

@dlangBugzillaToGithub
Copy link

Temtaime (@Temtaime) reported this on 2013-06-25T01:41:20Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=10470

CC List

Description

http://dpaste.1azy.net/9c18092d
@dlangBugzillaToGithub
Copy link
Author

admin commented on 2013-06-25T01:48:56Z

Code:

import std.stdio;

extern(Windows) void foo();
void bar();

void main() {
	alias typeof(foo) F;
	alias extern(Windows) typeof(bar) B;
	
	writeln(F.stringof);
	writeln(B.stringof); // expected result as foo gives
}


Output:

extern (Windows) void()
void()


(Taken 1:1 from dpaste)

@dlangBugzillaToGithub
Copy link
Author

yebblies commented on 2013-11-21T03:33:17Z

*** Issue 11379 has been marked as a duplicate of this issue. ***

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant