Skip to content

Commit 9eb65e7

Browse files
committed
make annotation classes abstract (since they are interfaces)
1 parent 77d2d0c commit 9eb65e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/parsing/JavaParsers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ object JavaParsers {
770770
val body1 = body.filterNot(_.isInstanceOf[DefDef])
771771
val templ = makeTemplate(annotationParents, constr :: body1, List())
772772
addCompanionObject(statics, atPos(offset) {
773-
TypeDef(mods, name, templ)
773+
TypeDef(mods | Flags.Abstract, name, templ)
774774
})
775775
}
776776

0 commit comments

Comments
 (0)