D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 13800 - Class from mixin template missing from ModuleInfo
Summary: Class from mixin template missing from ModuleInfo
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-30 19:05 UTC by forsaken
Modified: 2024-12-13 18:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description forsaken 2014-11-30 19:05:50 UTC
program output does not contain "SomeClass".

///*******

module main;
import std.stdio;

mixin template Test() {
	class SomeClass { }
}

mixin Test;

void main() {
	auto sc = new SomeClass;
	assert(sc);

	foreach(m; ModuleInfo) {
		foreach(c; m.localClasses) {
			writeln(c.name);
		}
	}
}
Comment 1 dlangBugzillaToGithub 2024-12-13 18:37:40 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17689

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB