annotate run/f/final_13_D.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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_D;
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 this(){
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 invariant {
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
17 }
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
18 }
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
19
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
20 int main(){
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
21 auto f = new Foo();
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
22 assert(f);
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
23
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
24 return 0;
9597b1b8030f [Issue 1151] Final template class w/ constructor and invariant causes compile error
thomask
parents:
diff changeset
25 }