Note: This website is archived. For up-to-date information about D projects and development, please visit

Ticket #58 (closed defect: invalid)

Opened 10 years ago

Last modified 10 years ago

Code doesn't compile if an enum is a slot's argument - VERY IMPORTANT - BLOCKS SOME TRAY FUNCTIONALITY

Reported by: Mitu Assigned to: somebody
Priority: blocker Version:
Keywords: Cc:


Code doesn't compile if an enum is a slot's argument.

Compiler output:

/usr/local/include/d/qtd/Marshal.di(55): Error: unrecognized trait parent /usr/local/include/d/qtd/Marshal.di(55): Error: cannot evaluate isModule("false"c) at compile time /usr/local/include/d/qtd/Marshal.di(55): Error: expression !isModule("false"c) is not constant or does not evaluate to a bool

This code make it appear:

void slot_onActivated(QSystemTrayIcon.ActivationReason? reason) {

// whatever


mixin Q_OBJECT;

It's really important - blocks the ability to detect clicks on tray icon.

Change History

08/30/10 15:35:35 changed by eldar

  • status changed from new to closed.
  • resolution set to invalid.

Please apply the patch for the compiler, it is described in the wiki.