Open
Description
Scala 3.3.3
These 2 definitions are equivilent:
val v1: scala.ContextFunction0[String] = null
val v2: () ?=> String = null
The second one is a synthetic sugar for the first one.
The second second one reports error context function types require at least one parameter
, but the first one compiles just fine which seem to make no sense.
I would be nice if the same error or a similar one was reported for the desugarred version of the context function type.