Weird error when compiling.
Agustin
agustin.l.alvarez at hotmail.com
Sat Oct 19 18:41:56 PDT 2013
I'm getting Assertion failure: 'thisval && thisval->op ==
TOKclassreference' on line 4067 in file 'interpret.c' when
compiling this.
public class Component {
////////////////////////////////////////////////////////////
/// Component's unique id.
private hash_t id;
....
////////////////////////////////////////////////////////////
/// \brief Default constructor.
///
/// \param[in] id The id of the component
////////////////////////////////////////////////////////////
public this(hash_t id) {
this.id = id;
this.active = true;
this.validated = true;
}
}
public class ComponentDetail(T) : Component {
////////////////////////////////////////////////////////////
/// Component's ID as static member.
public static hash_t ID = typeid(T).toHash;
////////////////////////////////////////////////////////////
/// \brief Default constructor.
////////////////////////////////////////////////////////////
public this() {
super(ID);
}
}
More information about the Digitalmars-d-learn
mailing list