diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-22 17:47:57 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-22 18:03:17 +0100 |
commit | e7fdb416006cfa4091b90935c74b5602adb5f68e (patch) | |
tree | 1070807d8eb3d3b37cc6047f5362543557bbfec8 /src/dotty/tools/backend/jvm | |
parent | dce7053f3a6b859733253edcc82ad42b6ea3ed73 (diff) | |
download | dotty-e7fdb416006cfa4091b90935c74b5602adb5f68e.tar.gz dotty-e7fdb416006cfa4091b90935c74b5602adb5f68e.tar.bz2 dotty-e7fdb416006cfa4091b90935c74b5602adb5f68e.zip |
Swap order of arguments in annotations
The fact that the annotation comes first is weird, because when I write
an annotated type it's <type> @<annotation>. Also, annotated types
are like RefinedTypes in that they derive from a parent type. And in
RefinedTypes the parent comes first.
So swapping the arguments improves consistency.
Diffstat (limited to 'src/dotty/tools/backend/jvm')
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 1498be354..f70143888 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -843,7 +843,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ * meta-annotated annotations (@(ann @getter) val x = 0), so we don't emit a warning. * The type in the AnnotationInfo is an AnnotatedTpe. Tested in jvm/annotations.scala. */ - case a @ AnnotatedType(_, t) => + case a @ AnnotatedType(t, _) => debuglog(s"typeKind of annotated type $a") t.toTypeKind(ct)(storage) |