Mercurial > projects > dstress
annotate compile/m/mixin_35_A.d @ 1524:b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
Reiner Pope <reiner.pope@gmail.com>
2007-04-08
http://d.puremagic.com/issues/show_bug.cgi?id=1113
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:27:11 +0000 |
parents | |
children |
rev | line source |
---|---|
1524
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
2 // $Date$ |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
3 // $Author$ |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
4 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
5 // @author@ Reiner Pope <reiner.pope@gmail.com> |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
6 // @date@ 2007-04-08 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1113 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 1113] Mixin causes incorrect static if branching |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
9 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
10 module dstress.compile.m.mixin_35_A; |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
11 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
12 template Foo(){ |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
13 mixin("alias char[] TheType;"); |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
14 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
15 static if (is(TheType : char[])) |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
16 const int Bar = 13; |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
17 else |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
18 static assert(false); |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
19 } |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
20 |
b5f3f03b37ad
[Issue 1113] Mixin causes incorrect static if branching
thomask
parents:
diff
changeset
|
21 static assert(13 == Foo!().Bar); |