November 09, 2005 abstract attribute bug | ||||
---|---|---|---|---|
| ||||
DMD 0.138 allows function bodies for abstract functions, but derived types are still supposed to override the abstract functions. However, this following code shows that 'abstract' appears to be ignored. class AbstractTest { abstract void test() { } } class ConcreteTest : AbstractTest { } ConcreteTest concreteTest = new ConcreteTest; concreteTest.test(); |
November 12, 2005 Re: abstract attribute bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to John C Attachments: | John C schrieb am 2005-11-09: > DMD 0.138 allows function bodies for abstract functions, but derived types are still supposed to override the abstract functions. However, this following code shows that 'abstract' appears to be ignored. > > class AbstractTest { > > abstract void test() { > } > > } > > class ConcreteTest : AbstractTest { > } > > ConcreteTest concreteTest = new ConcreteTest; > concreteTest.test(); Added to DStress as http://dstress.kuehne.cn/nocompile/a/abstract_15.d Thomas |
Copyright © 1999-2021 by the D Language Foundation