ceylon / ceylon-spec

DEPRECATED
Apache License 2.0
108 stars 34 forks source link

NPE for import wildcard on class with default constructor #1395

Closed sgalles closed 9 years ago

sgalles commented 9 years ago

This code in a package

shared class Bar {

    shared new () {}

}

and this code in an other package

import foo {
    Bar {...}
}

results in the 'ImportVisitor' caused an exception visiting a 'Import' node: '"java.lang.NullPointerException"' at 'com.redhat.ceylon.compiler.typechecker.analyzer.ImportVisitor.hidesToplevel(ImportVisitor.java:192)'

gavinking commented 9 years ago

Should be fixed now.