Skip to content

wrong number of arguments at getClass for (): PackratParsers #8847

Closed
@chungonn

Description

@chungonn

The code fragment compiles on scala 2.13.1 but not on dotty 0.24.0-RC1,

Minimized code

package test

import scala.util.parsing.combinator.{ImplicitConversions, PackratParsers, RegexParsers}

class TestParser  extends RegexParsers with ImplicitConversions with PackratParsers {

}

Output

[info] Compiling 2 Scala sources to /home/chungonn/development/scala3/bugs/packratparsers/target/scala-0.24/classes ...
[error] -- Error: /home/chungonn/development/scala3/bugs/packratparsers/src/main/scala/test/TestParser.scala:5:83 
[error] 5 |class TestParser  extends RegexParsers with ImplicitConversions with PackratParsers {
[error]   |                                                                                   ^
[error]   |wrong number of arguments at getClass for (): PackratParsers.this.MemoEntry$: (PackratParsers.this.MemoEntry$#<init> : (): PackratParsers.this.MemoEntry$), expected: 0, found: 1
[error] one error found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 3 s, completed 1 May, 2020 9:37:08 AM

Expectation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions