smit01
10/27/2021, 9:02 PMephemient
10/27/2021, 9:09 PMval c = Supplier<Int> { 1 } // Kotlin
Supplier<Integer> c = () -> 1; // Java
both should generate similar synthetic bridge methodsWhen compiling a class or interface that extends a parameterized class or implements a parameterized interface, the compiler may need to create a synthetic method, which is called a bridge method, as part of the type erasure process.