*.type, compiler: ] expected but . found

Hi,

*.type does not accept by Scala 3 compiler. What is the correct syntax for such type?

The following is the code I use.

object *

given Conversion[*.type, List[*.type]] with
  def apply(ast: *.type) = ast :: Nil

Thanks for your help.

Guofeng

This is fixed since Scala 3.1.x, however, the recommended version of Scala 3 is 3.3.0 (latest)

1 Like

You are right, the code could be compiled by 3.3.0 and 3.3.1-RC5.

I think it should be metals’ bug. I have reported it here.

Thanks for your help.