There was an error while loading. Please reload this page.
1 parent 17432c3 commit 0c448c6Copy full SHA for 0c448c6
1 file changed
test/compilable/traits.d
@@ -139,3 +139,7 @@ static assert(__traits(hasElaborateCopyConstructor, SPostblit));
139
static assert(!__traits(hasElaborateCopyConstructor, NoCpCtor));
140
static assert(!__traits(hasElaborateCopyConstructor, C19902));
141
static assert(!__traits(hasElaborateCopyConstructor, int));
142
+
143
+// Check that invalid use cases don't compile
144
+static assert(!__traits(compiles, __traits(hasElaborateCopyConstructor)));
145
+static assert(!__traits(compiles, __traits(hasElaborateCopyConstructor, S())));
0 commit comments