Use class name as secondary constructor name

This commit is contained in:
Alexey Sedunov
2015-03-18 00:19:41 +03:00
parent c0c1273388
commit 7d278f2f42
11 changed files with 28 additions and 28 deletions
@@ -116,7 +116,7 @@ public class JetSecondaryConstructor extends JetDeclarationStub<KotlinPlaceHolde
@Override
@NotNull
public String getName() {
return "<init>";
return getClassOrObject().getName();
}
@Nullable
@@ -146,7 +146,7 @@ public class JetSecondaryConstructor extends JetDeclarationStub<KotlinPlaceHolde
@NotNull
@Override
public Name getNameAsSafeName() {
return Name.special(getName());
return Name.identifier(getName());
}
@Nullable