Open
Description
Minimized code
import scala.compiletime.ops.int._
def test(i: Int = 3)(using i.type > 0 =:= true) = i
//test(3) compiles
//test(-2) proper compiler error
test()
Output
2 | test()
| ^
| Cannot prove that (?1 : Int) > (0 : Int)
|
| where: ?1 is an unknown value of type Int
| =:= (true : Boolean).
one error found
Expectation
code should compile as is the case when manually passing the value