Initial support for classes in scripts and REPL

This commit is contained in:
Alexander Udalov
2014-07-07 03:53:02 +04:00
parent c873806b54
commit 415fe7a5e6
18 changed files with 177 additions and 5 deletions
@@ -77,6 +77,9 @@ public class OverloadResolver {
else if (containingDeclaration instanceof PackageFragmentDescriptor) {
inPackages.put(getFqName(klass), klass.getConstructors());
}
else if (containingDeclaration instanceof ScriptDescriptor) {
// TODO: check overload conflicts of functions with constructors in scripts
}
else if (!(containingDeclaration instanceof FunctionDescriptor)) {
throw new IllegalStateException("Illegal class container: " + containingDeclaration);
}