From 7dfd2d58221db465cccd2b9f97e16ba3f85fff2d Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Wed, 20 Jun 2007 22:19:00 +0000 Subject: added a test for the syntax: "0 : @annot", i.e. an annotation but no explicit type --- test/files/pos/attributes.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/files') diff --git a/test/files/pos/attributes.scala b/test/files/pos/attributes.scala index 5854663638..ac3b83433f 100644 --- a/test/files/pos/attributes.scala +++ b/test/files/pos/attributes.scala @@ -75,4 +75,6 @@ object O7 { @myAttrs.a1 @myAttrs.a2(99) @myAttrs.a3(null) class A4; @a4(Array(1,2,3)) class A5; @a4(Array()) class A6; + + val zero = 0 : @myAttrs.a1 } -- cgit v1.2.3