From 0b02df3b826bf82c7cc8b020d2b763c1b8755033 Mon Sep 17 00:00:00 2001 From: Stephane Epardaud Date: Mon, 12 Oct 2015 10:23:24 +0200 Subject: [PATCH] Added test for #4588 --- language/test/metamodel/bugM12.ceylon | 18 ++++++++++++++++++ language/test/metamodel/runtime.ceylon | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 language/test/metamodel/bugM12.ceylon diff --git a/language/test/metamodel/bugM12.ceylon b/language/test/metamodel/bugM12.ceylon new file mode 100644 index 00000000000..14020422da5 --- /dev/null +++ b/language/test/metamodel/bugM12.ceylon @@ -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); +} \ No newline at end of file diff --git a/language/test/metamodel/runtime.ceylon b/language/test/metamodel/runtime.ceylon index 6be64fbbc03..308b7f4fac7 100644 --- a/language/test/metamodel/runtime.ceylon +++ b/language/test/metamodel/runtime.ceylon @@ -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``");