This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Example { | |
interface Identifier {} | |
class Request {} | |
class Response<T extends Identifier> {} | |
class ErrorResponse extends Response {} | |
// the inline lambda and the method _should_ behave exactly the same, | |
// but compiler somehow retains parameterzied upper bound type for _lambda_, but not for method. | |
// Ljava/util/function/Function<LExample$Request;LExample$Response<+LExample$Identifier;>;>; |