"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/compilable/test20835.d" between
dmd-2.093.0.tar.gz and dmd-2.093.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

test20835.d  (dmd-2.093.0):test20835.d  (dmd-2.093.1)
skipping to change at line 33 skipping to change at line 33
struct Struct { struct Struct {
int value; int value;
} }
enum Enum { enum Enum {
@Struct(42) first, @Struct(42) first,
} }
static assert(getUDAs!(Enum.first, Struct)[0] == Struct(42)); static assert(getUDAs!(Enum.first, Struct)[0] == Struct(42));
static assert(__traits(getAttributes, Enum.first)[0] == Struct(42)); static assert(__traits(getAttributes, Enum.first)[0] == Struct(42));
// https://issues.dlang.org/show_bug.cgi?id=21122
void test21122()
{
enum A;
enum E { @A a }
static assert(is(getAllUDAs!(E.a)[0] == A));
}
alias getAllUDAs(A...) = __traits(getAttributes, A);
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)