better compiler output for incomplete hierarchies

This commit is contained in:
Stepan Koltsov
2012-02-21 18:37:49 +04:00
parent ffa41c1c27
commit 175b7230f1
2 changed files with 5 additions and 3 deletions
@@ -324,7 +324,9 @@ public class JetCompiler implements TranslatingCompiler {
int line = -1;
int column = -1;
int colonIndex = text.indexOf(':');
if (colonIndex > 0) {
if (text.startsWith(":")) {
text = text.substring(1);
} else if (colonIndex > 0) {
path = "file://" + text.substring(0, colonIndex).trim();
text = text.substring(colonIndex + 1);