effekt-lang / effekt-lang/effekt

Module name clash with prelude leads to cryptic error

Open
#1,161 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Scala
Stars
469
Forks
41
Avg merge
1d 16h
Merged PRs (30d)
23

Description

I've noticed the following when giving a demo, some students managed to reproduce it.

### Repro

Make a file called `stream.effekt` and put a Hello World inside it:
```scala
def main() = println("hello")
// ERROR: Cannot find a function named `println`.
```

I think this is caused by the implicit [?] module name clashing with the `stream` module in Prelude.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.