Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ninja.genuine.brainfuck;
- import java.io.Serializable;
- public class BrainFuck {
- public static void main(String[] args) {
- System.out.println(foo(null) instanceof Serializable);
- System.out.println(bar(null) instanceof Serializable);
- }
- public static Something foo(Object o) {
- return (Something) o1 -> {};
- }
- public static Something bar(Object o) {
- return (Something & Serializable) o1 -> {};
- }
- public static interface Something {
- void idk(Object o);
- }
- }
- /**
- * The output of the program is:
- * false
- * true
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement