Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- {
- public void bar();
- mixin("void bar() { }");
- }
- mixin template Inject()
- {
- mixin("void bar() {}");
- }
- class Foo2
- {
- public void bar();
- mixin Inject;
- }
- void main()
- {
- auto f = new Foo();
- f.bar();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement