Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

additional tests

  • Loading branch information...
commit 2ca72bf075536d62a4c0bc9ab0c5f3be8f89f3ab 1 parent b116e22
@gavinking gavinking authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.