libmx3 / mx3

a sample project showcasing/collecting cross platform techniques on mobile
MIT License
1.17k stars 146 forks source link

Generate wrong name! #73

Closed liangtea closed 9 years ago

liangtea commented 9 years ago

record_with_const = record +c +j +o { const const_value: i32 = 8; }

Djinni will generate record_with_const_base,not record_with_const.At the same time djinni will generate class RecordWithConstBase!It will cause compilation errors.

liangtea commented 9 years ago

You are doing a great thing. But I need your help for some details.

skabbes commented 9 years ago

Since records aren't polymorphic, you don't need the +c +j +o in the definition.

I believe you want to do this:

record_with_const = record { const const_value: i32 = 8; }

If you do indeed want to extend djinni records, you should read the documentation here.