Closed
Description
This doesn't compile:
import Test.test
object Test {
def test = " " * 10
}
[info] Running dotty.tools.dotc.Main -d out tests/allan/Test.scala -classpath dotty-library_2.12-0.4.0-bin-SNAPSHOT-nonbootstrapped.jar
-- [E043] Syntax Error: tests/allan/Test.scala:4:13 ----------------------------
4 | def test = " " * 10
| ^^^^
| overloaded or recursive method test needs return type
Dotty is confused by the import