[Issue 17055] this(...) hides this() of mixed in template

2020-09-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17055

Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #4 from Simen Kjaeraas  ---


*** This issue has been marked as a duplicate of issue 3332 ***

--


[Issue 17055] this(...) hides this() of mixed in template

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17055

Basile-z  changed:

   What|Removed |Added

 CC|b2.t...@gmx.com |

--


[Issue 17055] this(...) hides this() of mixed in template

2017-01-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17055

--- Comment #3 from Ralph Alexander Bariz  ---
//
mixin template Foo()
{
int x;

this()
{
this.x=5;
}
}

class Bar
{
mixin Foo;
}

void main()
{
import std.stdio;

auto a = new Bar();
writeln(a.x);
}
//

is building fine

--


[Issue 17055] this(...) hides this() of mixed in template

2017-01-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17055

--- Comment #2 from Ralph Alexander Bariz  ---
//
mixin template Foo()
{
int x;

this()
{
this.x=5;
}
}

class Bar
{
mixin Foo;

this(int x)
{
this.x=x;
}
}

void main()
{
import std.stdio;

auto a = new Bar();
writeln(a.x);
}
//

leads to
/d994/f417.d(25): Error: constructor f417.Bar.this (int x) is not callable
using argument types ()

--


[Issue 17055] this(...) hides this() of mixed in template

2017-01-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17055

b2.t...@gmx.com changed:

   What|Removed |Added

 CC||b2.t...@gmx.com

--- Comment #1 from b2.t...@gmx.com ---
minimal example ?

--


[Issue 17055] this(...) hides this() of mixed in template

2017-01-02 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17055

Ketmar Dark  changed:

   What|Removed |Added

   Hardware|x86_64  |All
 OS|Linux   |All

--