default construction is disabled for type

Machine Code jckj33 at gmail.com
Wed Mar 6 01:44:29 UTC 2019


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];



More information about the Digitalmars-d-learn mailing list