January 30, 2004 small bug | ||||
---|---|---|---|---|
| ||||
I accidentally wrote a parameter list as if I was declaring variables char a, b; and found this: class Foo { char bar; this(bar) { this.bar = bar; } } causes the compiler to crash, but seems only to happen if the parameter name and member variable names are the same. |
Copyright © 1999-2021 by the D Language Foundation