Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
Part of #750
  • Loading branch information
tombentley committed Oct 9, 2015
1 parent 5f6c8bd commit 339395f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions test/metamodel/bug750.ceylon
Expand Up @@ -80,13 +80,13 @@ shared void bug750() {
//container
assert(bug750Init == init.container);

/*// invoke
// invoke
assert(is Bug750Init<String> inst= init.invoke([`String`], ""));
try {
init.memberInvoke(init, [], "");
assert(false);
} catch (TypeApplicationException e) {}
*/

// type parameters
assert(!init.typeParameterDeclarations.empty);

Expand Down Expand Up @@ -172,21 +172,20 @@ class Bug750Outer() {
//container
assert(bug750Init == init.container);

/*// invoke
assert(is Bug750Init<String> inst= init.invoke([`String`], ""));
try {
init.memberInvoke(init, [], "");
assert(false);
} catch (TypeApplicationException e) {}
*/
// invoke
assert(is Bug750Init<String> inst= init.memberInvoke(this, [`String`], ""));
try {
init.invoke([`String`], "");
assert(false);
} catch (TypeApplicationException e) {}

// type parameters
assert(!init.typeParameterDeclarations.empty);

// name
assert("" == init.name);

// qualifiedName
print("££££££££££££££££££ ``init.qualifiedName``");
assert("metamodel::Bug750Outer.Bug750Init" == init.qualifiedName);
}
}

0 comments on commit 339395f

Please sign in to comment.