diff --git a/test/fail_compilation/fail4269e.d b/test/fail_compilation/fail4269e.d new file mode 100644 index 000000000000..d7b2f23308be --- /dev/null +++ b/test/fail_compilation/fail4269e.d @@ -0,0 +1,5 @@ + +static if(is(typeof(X5.init))) {} +typedef Y X5; + +void main() {} diff --git a/test/fail_compilation/fail4269f.d b/test/fail_compilation/fail4269f.d new file mode 100644 index 000000000000..4033447426b8 --- /dev/null +++ b/test/fail_compilation/fail4269f.d @@ -0,0 +1,5 @@ + +static if(is(typeof(X16))) {} +alias X16 X16; + +void main() {} diff --git a/test/fail_compilation/fail4269g.d b/test/fail_compilation/fail4269g.d new file mode 100644 index 000000000000..9241e481de49 --- /dev/null +++ b/test/fail_compilation/fail4269g.d @@ -0,0 +1,6 @@ + +int[2] d; +static if(is(typeof(Xg.init))) {} +alias d[1] Xg; + +void main() {}