Mono: Fix warning about exported static fields

This commit is contained in:
Ignacio Etcheverry 2017-10-18 08:34:17 +02:00
parent fb63ee52fb
commit b1d106adb6

View file

@ -1271,7 +1271,8 @@ bool CSharpScript::_update_exports() {
GDMonoField *field = fields[i];
if (field->is_static()) {
ERR_PRINTS("Cannot export field because it is static: " + top->get_full_name() + "." + field->get_name());
if (field->has_attribute(CACHED_CLASS(ExportAttribute)))
ERR_PRINTS("Cannot export field because it is static: " + top->get_full_name() + "." + field->get_name());
continue;
}