Considering SAM interface FQ name in hash.

This commit is contained in:
Evgeny Gerashchenko
2013-06-13 19:55:12 +04:00
parent 7ef4c8cfa8
commit be02943675
4 changed files with 29 additions and 3 deletions
@@ -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"
}