Closed
Description
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.