Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Added test for #4588
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Oct 12, 2015
1 parent 2adbfec commit 0b02df3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions language/test/metamodel/bugM12.ceylon
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import ceylon.language.meta.declaration {
ClassDeclaration,
FunctionDeclaration
}
import ceylon.language.meta {
type
}

shared class BugM12A {
shared new() {}
shared void b() {}
}

@test
shared void bugM12test(){
[FunctionDeclaration, ClassDeclaration?] cd = [`function BugM12A.b`, `class BugM12A`];
type(cd);
}
2 changes: 2 additions & 0 deletions language/test/metamodel/runtime.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,8 @@ shared void run() {
sandbox(bugC1998);
// those were filed for the JS compiler initially
sandbox(bugJ505);
// those were filed for the ceylon-model
sandbox(bugM12test);
// ATTENTION!
// When you add new test methods here make sure they are "shared" and marked "@test"!
print(pass==total then "Metamodel tests OK (``total`` total)" else "Metamodel tests ``pass``/``total``");
Expand Down

0 comments on commit 0b02df3

Please sign in to comment.