eclipse-archived/ceylon

`shared restricted` constructors not working on the JVM

Closed this issue · 2 comments

When trying to compile the following code for the JVM, I get the following errors:

shared class Foo
{
	shared restricted new foo()
	{
	}
}

shared void run() => Foo.foo();
Ceylon backend error: foo_ has private access in test.Foo
Ceylon backend error: Foo(test.Foo.foo_) has private access in test.Foo

Fixed, needs to a backend test.

Test added, done.