DMD from both v2.060 and git head report "int false" on the following file:
--------------------
struct Slice(T)
{
this(SourceType)(SourceType source)
{
pragma(msg, SourceType.ElementType, " ", is(SourceType.ElementType));
}
}
struct Array(T)
{
alias T ElementType;
auto constructSlice(Array* source)
{
return Slice!(T)(source);
}
}
alias Array!(int) A;
void main()
{
}
--------------------
Attempt to use SourceType.ElementType inside Slice.this outside pragma statement leads to compilation errors.