Don't generate hash in sam wrapper class name

#KT-17091 Fixed
This commit is contained in:
Mikhael Bogdanov
2018-02-06 15:26:52 +01:00
parent ba5cc65792
commit 0954d1ab1b
21 changed files with 286 additions and 27 deletions
@@ -0,0 +1,22 @@
// FILE: A.kt
// FULL_JDK
package test
import java.util.concurrent.Callable
inline fun doWork(noinline job: () -> String): Callable<String> {
return Callable(job)
}
// FILE: B.kt
import test.*
fun box(): String {
val anotherModule = doWork { "K" }
if (anotherModule.javaClass.name != "BKt\$box$\$inlined\$doWork$1") return "class should be regenerated, but ${anotherModule.javaClass.name}"
return "OK"
}