1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00

Update polymorphic setter

This commit is contained in:
A. R. Shajii 2023-05-02 23:54:54 -04:00
parent 403aa991d1
commit 6976dc79d5

View File

@ -313,7 +313,9 @@ public:
/// @return true if the type is polymorphic and needs RTTI
bool isPolymorphic() const { return polymorphic; }
void setPolymorphic() { polymorphic = true; }
/// Sets whether the type is polymorphic. Should not generally be used.
/// @param p true if polymorphic
void setPolymorphic(bool p = true) { polymorphic = p; }
Type *getMemberType(const std::string &n) const override {
return getContents()->getMemberType(n);