Skip to content

Overloaded or recursive method test needs return type #3253

Closed
@allanrenucci

Description

@allanrenucci

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions