fmease / lushui

The reference compiler of the Lushui programming language
Apache License 2.0
7 stars 0 forks source link

Add another positive UI test for re-exports #142

Open fmease opened 2 years ago

fmease commented 2 years ago

Namely

;;; TEST pass check

@public module m of
    @public item: extern.core.nat.Nat = 0

use m.item

@public use item as foo

Also add a [Description] please. What is so noteworthy about this one? Well, the “equivalent” Rust code fails to compile. In Lushui, it works, since we pierce through / collapse use chains.

fmease commented 2 years ago

OTOH, what if m is private? Should that still be fine? I guess so. Not sure.