diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-18 08:34:17 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-18 08:34:17 +0200 |
commit | b1d106adb63714d9cd124b7d6f8268b0975e2eb9 (patch) | |
tree | 0d44b2c19580c7041a3bcd7257c54a77dddfed01 | |
parent | fb63ee52fbbc62ab3f1a08ede1f2bd05bfc01db5 (diff) |
Mono: Fix warning about exported static fields
-rw-r--r-- | modules/mono/csharp_script.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 7acfaaed86..ba8c7df9cc 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -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; } |