Skip to content

java.util.HashMap.size has a double signature. #1386

Closed
@nicolasstucki

Description

@nicolasstucki
dotty> new java.util.HashMap[Int, Int]().size 
    ^
new java.util.HashMap[Int, Int]().size
<console>:8: error: cannot merge
  method size: ()Int  and
  variable size: Int;
they are both defined in class HashMap but have matching signatures
  ()Int and
  Int
when seen as members of java.util.HashMap[Int, Int]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions