How can I create a 0-arity method without parenthesis using Scala 3 low-level typed AST metaprogramming API?
I tried this:
Refinement(parent, "name", MethodType(Nil)(_ => Nil, _ => TypeRepr.of[String]))
But it comes out as:
[error] | def name
[error] | (): String;
And if I try and call this refinement it complains with:
method name must be called with () argument
How can I get rid of the parenthesis?