eclipse-archived / ceylon

The Ceylon compiler, language module, and command line tools
http://ceylon-lang.org
Apache License 2.0
395 stars 62 forks source link

calling constructor of static inner class broken for Java backend #7421

Closed gavinking closed 5 years ago

gavinking commented 5 years ago

Given:

shared class NestedCtor {
    shared static class Ctor  {
        shared new instance {}
        shared new create() {}
    }
    shared new() {}
}

Calling NestedCtor.Ctor.create() or Ctor.create() results in a compilation error on the JVM.

gavinking commented 5 years ago

Fixed. This was quite tricky :-/