https://issues.dlang.org/show_bug.cgi?id=17694
Steven Schveighoffer <schvei...@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |schvei...@yahoo.com Resolution|--- |INVALID --- Comment #1 from Steven Schveighoffer <schvei...@yahoo.com> --- Actually, the issue is that the thing you are checking isn't valid syntax. For example: TBounds.Margins.Left; Error: need 'this' for 'Margins' of type '@property TBounds()' What you need is either the typeof, or to use an instance instead of the type itself: mixin(`static assert(__traits(compiles, TButton.init.Margins.Left));`); mixin(`static assert(__traits(compiles, typeof(TButton.Margins.Left)));`); --