wu-lang/wu

[bug] symbol imports are not exported like module imports

evolbug opened this issue · 0 comments

Attempting to use Object from love results in an error

# love/types.wu
Object: struct {}

# love/init.wu
import types { Object }

# main.wu
import love

asd : fun() -> love Object {
    new love Object {}
}

error:

wrong: no such module member `Object`
     --> main.wu
      │
    3 │ asd : fun() -> love Object {
      │                     ^^^^^^