MVCoconut / coconut.ui

Wow, such reactive view! Much awesome!
The Unlicense
89 stars 9 forks source link

[gen4] Cannot parameterize a View #28

Closed kevinresol closed 5 years ago

kevinresol commented 5 years ago
class Main {
    static function main() {}
}

class MyView<T:EnumValue> extends coconut.ui.View {
    @:attr var data:Data<T>;
    function render() return null;
}

class Data<T:EnumValue> implements coconut.data.Model {}

This gives Type not found : T

Commenting out the attribute results in Invalid number of type parameters for MyView