[dmd2.068] Bug or future?

2015-08-07 Thread VlasovRoman via Digitalmars-d-learn
I have some code: import std.stdio; auto dot(T, R)(T x, R y) { return x * y; } struct Vector(T) { alias selftype = Vector!T; int len = 5; pure: const @property{ static if( is( typeof( dot( selftype.init, selftype.init ) ) ) ){ auto len2() {return len *

Re: [dmd2.068] Bug or future?

2015-08-07 Thread Ali Çehreli via Digitalmars-d-learn
On 08/06/2015 11:26 PM, VlasovRoman wrote: I have some code: Filed: https://issues.dlang.org/show_bug.cgi?id=14883 Ali

Re: [dmd2.068] Bug or future?

2015-08-07 Thread Ali Çehreli via Digitalmars-d-learn
On 08/06/2015 11:26 PM, VlasovRoman wrote: I have some code: Reduced: import std.stdio; auto foo(T)(T) { return 42; } struct Vector(T) { pragma(msg, is(typeof(foo(Vector.init;// prints true static if(is(typeof(foo(Vector.init { static assert(false);

Re: [dmd2.068] Bug or future?

2015-08-07 Thread Daniel Kozak via Digitalmars-d-learn
On Friday, 7 August 2015 at 06:26:21 UTC, VlasovRoman wrote: I have some code: import std.stdio; auto dot(T, R)(T x, R y) { return x * y; } struct Vector(T) { alias selftype = Vector!T; int len = 5; pure: const @property{ static if( is( typeof( dot( selftype.init,