Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
5.9.0 Beta 3
-
None
-
7d4d47de7049ba52726071d4d2ba03fc014aa48d
Description
Qt will not complain about this:
//in some QObject:
connect(this, &TheClass:whatever, [](){qDebug() << "Boom";}, Qt::UniqueConnection);
That doesn't work as every lambda is a unique object, but there are no warnings or errors here. Ideally, this would trigger a compile error, but I don't think that could be done in the current API. So, the next best thing is a warning at runtime I think.