Browse files

test for #925

  • Loading branch information...
1 parent d15f4ab commit 5b8e88c61b77c421984c39b4c5e2054aa880972c @gavinking gavinking committed Feb 19, 2014
View
12 test/moduledep2/com/redhat/ceylon/compiler/typechecker/test/mod/Shared.ceylon
@@ -0,0 +1,12 @@
+import com.redhat.ceylon.compiler.typechecker.test.mod.internal {
+ Unshared
+}
+
+Unshared un1 = Unshared();
+@error shared Unshared un2 = Unshared();
+
+class Cl1() extends Unshared() {}
+@error shared class Cl2() extends Unshared() {}
+
+void fu1(Unshared u) {}
+shared void fu2(@error Unshared u) {}
View
1 test/moduledep2/com/redhat/ceylon/compiler/typechecker/test/mod/internal/Unshared.ceylon
@@ -0,0 +1 @@
+shared class Unshared() {}
View
1 test/moduledep2/com/redhat/ceylon/compiler/typechecker/test/mod/module.ceylon
@@ -0,0 +1 @@
+module com.redhat.ceylon.compiler.typechecker.test.mod "1" {}
View
1 test/moduledep2/com/redhat/ceylon/compiler/typechecker/test/mod/package.ceylon
@@ -0,0 +1 @@
+shared package com.redhat.ceylon.compiler.typechecker.test.mod;

0 comments on commit 5b8e88c

Please sign in to comment.