Thread overview | |||||
---|---|---|---|---|---|
|
March 06, 2019 default construction is disabled for type | ||||
---|---|---|---|---|
| ||||
What's that error? below code used to work fine, now it gives this compiler error. class Keyword { this(string value, Token type) { this.value = value; this.type = type; } string value; Token type; Keyword next; } static Keyword[] hashtab = new Keyword[hashtab_siz]; |
March 06, 2019 Re: default construction is disabled for type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Machine Code | > public this() { }
Doesn't change anything...
|
March 06, 2019 Re: default construction is disabled for type | ||||
---|---|---|---|---|
| ||||
Posted in reply to Machine Code | So I find out the issue: it was due a struct member of the class having @disable this(); |
Copyright © 1999-2021 by the D Language Foundation