Skip to content

Inline methods clash after erasure #6750

Closed
@bishabosha

Description

@bishabosha

minimized code

inline def foo(i: => Int)  = ???
inline def foo(l: => Long) = ???

expectation

These should be able to exist in the same scope as Function0[Int] and Function0[Long] are only required at compiletime.

result

error [erasure]:

Double definition:
inline def foo(i: => Int): Nothing in package object package$package at line 1 and
inline def foo(l: => Long): Nothing in package object package$package at line 2
have the same type after erasure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions