Re: mixin template and overloading

2015-01-20 Thread anonymous via Digitalmars-d
On Tuesday, 20 January 2015 at 11:30:39 UTC, Luc Bourhis wrote: Consider: ~ % dmd -v|head -n 1 DMD64 D Compiler v2.066-devel ~% cat mixin_template_pb.d mixin template Foo(T) { void bar() {} } struct FooBar { mixin Foo!int; void bar(ulong d)() {} } void check() { FooBar o; o.bar();

mixin template and overloading

2015-01-20 Thread Luc Bourhis via Digitalmars-d
Consider: ~ % dmd -v|head -n 1 DMD64 D Compiler v2.066-devel ~% cat mixin_template_pb.d mixin template Foo(T) { void bar() {} } struct FooBar { mixin Foo!int; void bar(ulong d)() {} } void check() { FooBar o; o.bar(); } ~% dmd -c mixin_template_pb.d mixin_template_pb.d(12): Error: