haxetink / tink_macro

The macro toolkit
MIT License
57 stars 17 forks source link

Type not found _Main.Main #21

Closed kevinresol closed 6 years ago

kevinresol commented 6 years ago

This is a reproducible code for https://github.com/haxetink/tink_typecrawler/issues/17 and https://github.com/haxetink/tink_web/issues/30

I guess the root issue comes from type.toComplex() or something around it.

import coconut.Ui.*;

class Main {
    static function main() {
        trace(hxx('<Custom/>'));
    }
}

private typedef CustomData = {}

class Custom extends coconut.ui.View<{data:CustomData}> {
    function render() '<div/>';
}

Build this with -lib coconut.vdom -lib coconut.ui (gen2 branch)

gives: Type not found : _Main.Main