JakobOvrum / Diggler

IRC bot framework for the D programming language
http://jakobovrum.github.io/Diggler/
Other
6 stars 5 forks source link

Static assert unittest failure in dirk tracker #2

Closed CounterPillow closed 9 years ago

CounterPillow commented 9 years ago

Test bot code that triggers this issue

import diggler.bot;
import irc.client;
import irc.eventloop;

void main()
{
    Bot.Configuration conf;
    conf.nickName = "foo";
    conf.userName = "foo";
    conf.realName = "foo";
    conf.commandPrefix = "!";

    Bot bot = new Bot(conf);
    IrcClient client = bot.connect("irc://foo");

    client.onNickInUse ~= badNick => badNick ~ "_";
    client.onConnect ~= delegate void() { client.join("#foo"); };

    bot.eventLoop.postTimer(delegate void() { client.send("#foo", "Hi!"); }, 1.0, IrcEventLoop.TimerRepeat.yes);

    bot.run();
}

Built with:

dub build --build=unittest

Build failure message:

../../.dub/packages/dirk-master/irc/tracker.d(452): Error: static assert  (is(CustomTrackedChannel!void == CustomTrackedChannel!(UserInfo))) is false
../../.dub/packages/diggler-master/src/diggler/tracker.d(15):        instantiated from here: CustomIrcTracker!(UserInfo)
FAIL ../../.dub/packages/diggler-master/.dub/build/library-unittest-linux.posix-x86_64-dmd_2066-7DC1260DB7DE0CFE87BD4B2292C2DD2B/ diggler staticLibrary

Everything runs fine if just built in debug mode though.

JakobOvrum commented 9 years ago

Thanks, fixed in the lastest version of Dirk!