to compileable state

This commit is contained in:
Dmitry Jemerov
2012-05-21 15:20:26 +02:00
committed by Pavel V. Talanov
parent 34da39c55b
commit 80e678e2ec
5 changed files with 6 additions and 30 deletions
@@ -25,13 +25,6 @@ public class StarProjectionType extends Type {
@NotNull
@Override
public String toKotlin() {
G g = new G("");
G<String> g2 = new G<String>("");
return STAR;
}
}
class G<T extends String> {
public <T> G(T t) {
}
}
@@ -62,7 +62,7 @@ public class TypeVisitor extends PsiTypeVisitor<Type> implements J2KVisitor {
final IdentifierImpl identifier = new IdentifierImpl(name);
if (name.equals("void")) {
myResult = new PrimitiveType(new IdentifierImpl(JetStandardClasses.UNIT_ALIAS));
myResult = new PrimitiveType(new IdentifierImpl("Unit"));
}
else if (Node.PRIMITIVE_TYPES.contains(name)) {
myResult = new PrimitiveType(new IdentifierImpl(AstUtil.upperFirstCharacter(name)));