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 *
On 08/06/2015 11:26 PM, VlasovRoman wrote:
I have some code:
Filed:
https://issues.dlang.org/show_bug.cgi?id=14883
Ali
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);
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,