Fix Event.opOpAssign

This commit is contained in:
haru-s 2022-11-20 17:03:07 +09:00
parent ca6e4e7458
commit 1bb4796853

View file

@ -72,7 +72,7 @@ template Event(T1, T2) // docmain
/// Shortcut for addHandler().
void opOpAssign(string op, TDG)(TDG handler)
void opOpAssign(string op, TDG)(TDG handler) if (op == "~")
{
addHandler(toDelegate(handler));
}