summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tanya/test/stub.d8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tanya/test/stub.d b/test/tanya/test/stub.d
index a83cf01..fca2d96 100644
--- a/test/tanya/test/stub.d
+++ b/test/tanya/test/stub.d
@@ -90,8 +90,8 @@ struct WithLvalueElements
*/
mixin template InputRangeStub(E = int)
{
+ import std.traits : hasUDA, getUDAs;
import tanya.meta.metafunction : Alias;
- import tanya.meta.trait : evalUDA, getUDAs, hasUDA;
/*
* Aliases for the attribute lookups to access them faster
@@ -113,7 +113,7 @@ mixin template InputRangeStub(E = int)
}
else static if (Length.length != 0)
{
- private enum size_t count = evalUDA!(Length[0]).length;
+ private enum size_t count = Length[0]().length;
static assert (!infinite,
"Range cannot have length and be infinite at the same time");
@@ -372,7 +372,7 @@ struct Hashable
*/
mixin template StructStub()
{
- import tanya.meta.trait : evalUDA, getUDAs, hasUDA;
+ import std.traits : hasUDA, getUDAs;
static if (hasUDA!(typeof(this), NonCopyable))
{
@@ -384,7 +384,7 @@ mixin template StructStub()
{
size_t toHash() const @nogc nothrow pure @safe
{
- return evalUDA!(Hashable[0]).hash;
+ return Hashable[0]().hash;
}
}