Join Slack
Powered by
to trick the compiler in allowing you to craft and...
# announcements
j
jw
01/17/2018, 3:26 PM
to trick the compiler in allowing you to craft and expression that's always
false
s
StavFX
01/17/2018, 7:10 PM
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 😛
3
Views
Open in Slack
Previous
Next