On 05/11/2017 12:39 PM, Andre Pany wrote:
in this example, both asserts fails. Is my assumption right, that UDA on
alias have no effect? If yes, I would like to see a compiler warning.
But anyway, I do not understand why the second assertion fails. Are UDAs
on arrays not allowed?
import
On Thursday, 11 May 2017 at 10:57:22 UTC, Stanislav Blinov wrote:
On Thursday, 11 May 2017 at 10:39:03 UTC, Andre Pany wrote:
[...]
It should've been
alias FooList = @Flattened Foo[];
which will generate a compile-time error (UDAs not allowed for
alias declarations).
And then:
static
On Thursday, 11 May 2017 at 10:39:03 UTC, Andre Pany wrote:
Hi,
in this example, both asserts fails. Is my assumption right,
that UDA on alias have no effect? If yes, I would like to see a
compiler warning.
But anyway, I do not understand why the second assertion fails.
Are UDAs on arrays
Hi,
in this example, both asserts fails. Is my assumption right, that
UDA on alias have no effect? If yes, I would like to see a
compiler warning.
But anyway, I do not understand why the second assertion fails.
Are UDAs on arrays not allowed?
import std.traits: hasUDA;
enum Flattened;