Skip to content

Commit

Permalink
additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed May 27, 2012
1 parent b116e22 commit 2ca72bf
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions test/main/declarations/InitializerParams.ceylon
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 2ca72bf

Please sign in to comment.