Mercurial > projects > dstress
annotate run/f/final_13_C.d @ 1543:9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
<dhaffey@gmail.com>
2007-05-31
http://d.puremagic.com/issues/show_bug.cgi?id=1151
author | thomask |
---|---|
date | Sun, 01 Jul 2007 13:19:50 +0000 |
parents | |
children | ec5e144583ea |
rev | line source |
---|---|
1543
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
2 // $Date$ |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
3 // $Author$ |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
4 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
5 // @author@ <dhaffey@gmail.com> |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
6 // @date@ 2007-05-31 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1151 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 1151] Final template class w/ constructor and invariant causes compile error |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
9 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
10 module dstress.run.f.final_13_C; |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
11 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
12 final class Foo(){ |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
13 invariant { |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
14 } |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
15 } |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
16 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
17 int main(){ |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
18 auto f = new Foo!()(); |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
19 assert(f); |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
20 |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
21 return 0; |
9597b1b8030f
[Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff
changeset
|
22 } |