scalacenter/scala

Dotty represents java annotations as init methods

bishabosha opened this issue · 1 comments

e.g. given

public @interface RunWith {
  Class<? extends Runner> value();
}

the code

@RunWith(classOf[Foo])
class Suite

is pickled to have an annotation constructed by method

def `<init>`(value: Class[_ <: Runner]): RunWith

but by standard, nsc sees RunWith as having a no-arg constructor

fixed in upstream