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:
parent
403aa991d1
commit
6976dc79d5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user