opEquals should be const:

struct Decimal(int precision, int scale){
        bool opEquals(T)(T d) const
                if (isInstanceOf!(Decimal, T))
        {
                return false;
        }
}

Reply via email to