to trick the compiler in allowing you to craft and...
# announcements
j
to trick the compiler in allowing you to craft and expression that's always
false
s
Well if you really wanted to watch the world burn, this impl of A would return
true
Copy code
class A {
   override fun equals(other: Any?) = other is Int
}
But the compiler would still stop you from trying 😛