diff --git a/src/rt/typeinfo/ti_cent.d b/src/rt/typeinfo/ti_cent.d index e120698626d..a103be5dedf 100644 --- a/src/rt/typeinfo/ti_cent.d +++ b/src/rt/typeinfo/ti_cent.d @@ -15,7 +15,7 @@ module rt.typeinfo.ti_cent; private import rt.util.hash; -static if(__traits(compiles, { cent c = 42; })): +static if(is(cent)): // cent diff --git a/src/rt/typeinfo/ti_ucent.d b/src/rt/typeinfo/ti_ucent.d index a493eb4d504..c4057d6f11a 100644 --- a/src/rt/typeinfo/ti_ucent.d +++ b/src/rt/typeinfo/ti_ucent.d @@ -15,7 +15,7 @@ module rt.typeinfo.ti_ucent; private import rt.util.hash; -static if (__traits(compiles, { ucent uc = 42; })): +static if (is(ucent)): // ucent