diff options
author | Ondrej Lhotak <olhotak@uwaterloo.ca> | 2014-10-29 17:28:02 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-11-22 20:10:21 +0100 |
commit | 44ae00661116be3158f0c3dec94fb9a1951f7895 (patch) | |
tree | 6ca024b452ea98f83839c06aa7034f675a7d318d | |
parent | baaf851e3a5a74993ee1778d4135344037371dea (diff) | |
download | dotty-44ae00661116be3158f0c3dec94fb9a1951f7895.tar.gz dotty-44ae00661116be3158f0c3dec94fb9a1951f7895.tar.bz2 dotty-44ae00661116be3158f0c3dec94fb9a1951f7895.zip |
make annotation classes abstract (since they are interfaces)
-rw-r--r-- | src/dotty/tools/dotc/parsing/JavaParsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/parsing/JavaParsers.scala b/src/dotty/tools/dotc/parsing/JavaParsers.scala index f524827b9..d30a4ceb0 100644 --- a/src/dotty/tools/dotc/parsing/JavaParsers.scala +++ b/src/dotty/tools/dotc/parsing/JavaParsers.scala @@ -770,7 +770,7 @@ object JavaParsers { val body1 = body.filterNot(_.isInstanceOf[DefDef]) val templ = makeTemplate(annotationParents, constr :: body1, List()) addCompanionObject(statics, atPos(offset) { - TypeDef(mods, name, templ) + TypeDef(mods | Flags.Abstract, name, templ) }) } |