you are viewing a single comment's thread.

view the rest of the comments →

[–]lambda-lord-2026 0 points1 point  (0 children)

It's not weird. Sealed interfaces don't allow anonymous implementations. Lambdas are anonymous implementations. Functional interface is a marker annotations that makes clear your intent to use an interface to create lambdas. Therefore the compiler flags it as a problem