## Compiler version 3.6.0-RC1 ## Minimized example ```Scala val f: [A <: Int] => A => Int = [A <: Any] => (a: A) => 0 ``` ## Output ```scala -- [E007] Type Mismatch Error: tests/playground/example.scala:3:2 -------------- 3 | [A <: Any] => (a: A) => 0 | ^^^^^^^^^^^^^^^^^^^^^^^^^ | Found: [A] => (a: A) => Int | Required: [A <: Int] => (x$1: A) => Int ``` ## Expectation <img width="325" alt="Screenshot 2024-08-01 at 13 35 30" src="https://github.com/user-attachments/assets/809039b7-63c7-4979-8d9f-da97cc1a2811">