From 331e75be7e90817bc2931c3d00dd931b22c179f5 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 24 Sep 2016 16:50:58 +0200 Subject: Swap order of elements in Annotated Now it's annotated first, annotation second. This is in line with AnnotatedType and in line with the principle that tree arguments should come in the order they are written. The reason why the order was swapped before is historical - Scala2 did it that way. --- src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala') diff --git a/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala b/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala index 0d91e8cd6..371d20e60 100644 --- a/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala +++ b/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala @@ -1186,7 +1186,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas case ANNOTATEDtree => val annot = readTreeRef() val arg = readTreeRef() - Annotated(annot, arg) + Annotated(arg, annot) case SINGLETONTYPEtree => SingletonTypeTree(readTreeRef()) -- cgit v1.2.3