Page MenuHomePhabricator

mono_gen: cannot have write-only constructor properties
Open, NormalPublic

Description

This EO file does not build:

class Test {
  methods {
    @property test {
      values {
        v: int;
      }
      set {}
  }
  constructors {
    .test;
  }
}

It aborts with the following cryptic message:

eolian: function 'test' not found in class 'Test'
ERR<15583>:eina_safety ../src/lib/eolian/database_function_api.c:189 eolian_function_return_type_get() safety check failed: fid == NULL
Segmentation fault (core dumped)

If a getter is added to the property the problem goes away.

If this really is a limitation of the C# bindings the error message should be more explicit.