Skip to content

Commit

Permalink
Test for #347
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Apr 10, 2014
1 parent d34166c commit 484896a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/metamodel/bug347.ceylon
@@ -0,0 +1,16 @@
import ceylon.language.meta { modules }
import ceylon.language.meta.declaration { ClassDeclaration }

shared final annotation class TestAnnotation()
satisfies OptionalAnnotation<TestAnnotation, ClassDeclaration> {
}

@test
shared void bug347() {
for (value m in modules.list) {
for (value member in m.members) {
value components = member.annotatedMembers<ClassDeclaration, TestAnnotation>();
assert(components == []);
}
}
}
1 change: 1 addition & 0 deletions test/metamodel/runtime.ceylon
Expand Up @@ -1782,6 +1782,7 @@ shared void run() {
sandbox(bug308);
sandbox(bug318);
sandbox(bug320);
sandbox(bug347);
sandbox(bug349);
sandbox(bug388);
sandbox(bug411);
Expand Down

0 comments on commit 484896a

Please sign in to comment.