summaryrefslogtreecommitdiff
path: root/test/files/run/t3236/AnnotationTest.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-12-20 13:19:19 +1000
committerJason Zaugg <jzaugg@gmail.com>2016-12-20 13:19:19 +1000
commit079e8dc61704a768792c6b210a5b0cd25522ee55 (patch)
tree37154f37a745c9c7535cbe0a7f6cef486beb5870 /test/files/run/t3236/AnnotationTest.scala
parent56fb9172756d95ef903c36efcf54f1ae95c64b4b (diff)
parent23548c4301e48cb69f05cd01ceba418dc9c36d6c (diff)
downloadscala-079e8dc61704a768792c6b210a5b0cd25522ee55.tar.gz
scala-079e8dc61704a768792c6b210a5b0cd25522ee55.tar.bz2
scala-079e8dc61704a768792c6b210a5b0cd25522ee55.zip
Merge remote-tracking branch 'origin/2.11.x' into merge/2.11.x-to-2.12.x-20161220
Conflicts: bincompat-backward.whitelist.conf build.xml src/compiler/scala/tools/nsc/typechecker/Typers.scala src/library/scala/collection/immutable/NumericRange.scala
Diffstat (limited to 'test/files/run/t3236/AnnotationTest.scala')
-rw-r--r--test/files/run/t3236/AnnotationTest.scala33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/files/run/t3236/AnnotationTest.scala b/test/files/run/t3236/AnnotationTest.scala
new file mode 100644
index 0000000000..c2f9ae7837
--- /dev/null
+++ b/test/files/run/t3236/AnnotationTest.scala
@@ -0,0 +1,33 @@
+trait AnnotationTest {
+ @BooleanAnnotation(Constants.BooleanTrue)
+ @ByteAnnotation(Constants.Byte)
+ @CharAnnotation(Constants.Char)
+ @ShortAnnotation(Constants.Short)
+ @IntAnnotation(Constants.Int)
+ @LongAnnotation(Constants.Long)
+ @FloatAnnotation(Constants.Float)
+ @DoubleAnnotation(Constants.Double)
+ @StringAnnotation(Constants.String)
+ def test1: Unit
+
+ @BooleanAnnotation(Constants.InvertedBoolean)
+ @ByteAnnotation(Constants.NegativeByte)
+ @ShortAnnotation(Constants.NegativeShort)
+ @IntAnnotation(Constants.NegativeInt)
+ @LongAnnotation(Constants.NegativeLong)
+ @FloatAnnotation(Constants.NegativeFloat)
+ @DoubleAnnotation(Constants.NegativeDouble)
+ @StringAnnotation(Constants.NegativeString)
+ def test2: Unit
+
+ @BooleanAnnotation(Constants.BooleanFalse)
+ @ByteAnnotation(Constants.LiteralCharAsByte)
+ @CharAnnotation(Constants.LiteralChar)
+ @ShortAnnotation(Constants.LiteralCharAsShort)
+ @IntAnnotation(Constants.LiteralCharAsInt)
+ @LongAnnotation(Constants.LiteralCharAsLong)
+ def test3: Unit
+
+ @LongAnnotation(Constants.LiteralIntAsLong)
+ def test4: Unit
+}