ethereum / fe

Emerging smart contract language for the Ethereum blockchain.
https://fe-lang.org
Other
1.61k stars 187 forks source link

glob import is too restrictive #869

Open Y-Nak opened 1 year ago

Y-Nak commented 1 year ago

Glob import doesn't work if the imported module contains a private item.

Example

// main.fe
use bar::*

// bar.fe
pub struct PubS {}
struct PrivS {}

output

error: struct PrivS is private
  ┌─ demo/src/main.fe:1:5
  │
1 │ use foo::*
  │     ^^^ PrivS