Short annotations supported in parser for toplevel declarations

Error recovery tests fail
This commit is contained in:
Andrey Breslav
2011-07-13 23:22:50 +04:00
parent 252086263c
commit 3ead58dc78
49 changed files with 618 additions and 899 deletions
+29
View File
@@ -0,0 +1,29 @@
foo bar(1) buzz<T>(1) zoo namespace aa
foo bar(1) buzz<T>(1) zoo namespace a {}
foo bar(1) buzz<T>(1) zoo class A
foo bar(1) buzz<T>(1) zoo object B
foo bar(1) buzz<T>(1) zoo fun a() {}
foo bar(1) buzz<T>(1) zoo val c : Int = 0
foo bar(1) buzz<T>(1) zoo var v : Int = 0
foo bar(1) buzz<T>(1) zoo type T = Int
class Foo {
foo bar(1) buzz<T>(1) zoo class object {}
foo bar(1) buzz<T>(1) zoo class A
foo bar(1) buzz<T>(1) zoo object B
foo bar(1) buzz<T>(1) zoo fun a() {}
foo bar(1) buzz<T>(1) zoo val c : Int = 0
foo bar(1) buzz<T>(1) zoo var v : Int = 0
foo bar(1) buzz<T>(1) zoo type T = Int
foo bar(1) buzz<T>(1) zoo this(x : Int) : this() {}
foo bar(1) buzz<T>(1) zoo {}
}
fun test() {
when (foo bar(1) buzz<T>(1) zoo val a = 1) {
1 => 1
}
}