Browse files

additional tests

  • Loading branch information...
1 parent b116e22 commit 2ca72bf075536d62a4c0bc9ab0c5f3be8f89f3ab @gavinking gavinking committed May 27, 2012
Showing with 30 additions and 2 deletions.
  1. +30 −2 test/main/declarations/InitializerParams.ceylon
View
32 test/main/declarations/InitializerParams.ceylon
@@ -7,12 +7,26 @@ interface InitializerParams {
print(bar);
}
- class Foo(foo, bar, @error fum, qux, fo, fi) {
+ class Foo(foo, bar, @error fum, qux, fo, fi, fee, lorax,
+ xarol, @error twiddle, @error twaddle) {
String foo;
shared String bar;
String qux();
@error value fo;
@error function fi();
+ if (true) {
+ String twiddle;
+ }
+ @error String fee = "goodbye";
+ String twaddle { return "hello"; }
+ String lorax;
+ if (false) {
+ @error lorax = "something";
+ }
+ variable String xarol;
+ if (true) {
+ xarol := "something else";
+ }
}
abstract class Bar(foo, bar, @error baz, @error fum) {
@@ -21,11 +35,25 @@ interface InitializerParams {
shared formal String baz;
}
- void foo(foo, @error fum, qux, fo, fi) {
+ void foo(foo, @error fum, qux, fo, fi, fee, lorax,
+ xarol, @error twiddle, @error twaddle) {
String foo;
String qux();
@error value fo;
@error function fi();
+ if (true) {
+ String twiddle;
+ }
+ @error String fee = "goodbye";
+ String twaddle { return "hello"; }
+ String lorax;
+ if (false) {
+ @error lorax = "something";
+ }
+ variable String xarol;
+ if (true) {
+ xarol := "something else";
+ }
}
void bar(foo) {

0 comments on commit 2ca72bf

Please sign in to comment.