Considering SAM interface FQ name in hash.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class Custom {
|
||||
public interface Runnable {
|
||||
void run2();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun box(): String {
|
||||
val f = { }
|
||||
val class1 = Runnable(f).getClass()
|
||||
val class2 = Custom.Runnable(f).getClass()
|
||||
|
||||
return if (class1 != class2) "OK" else "Same class: $class1"
|
||||
}
|
||||
Reference in New Issue
Block a user