Removed usages of getTuple() and isTupleType()

This commit is contained in:
Evgeny Gerashchenko
2013-03-19 16:10:21 +04:00
parent 6e623c57e1
commit ca27637ef2
5 changed files with 11 additions and 5 deletions
@@ -95,8 +95,9 @@ public class TypeTransformingVisitor extends JetVisitor<JetType, Void> {
String shortName = type.getReferenceExpression().getReferencedName();
String longName = (qualifier == null ? "" : qualifier.getText() + ".") + shortName;
// TODO remove this code when Unit will be not a synonym for Tuple0
if (KotlinBuiltIns.UNIT_ALIAS.getName().equals(longName)) {
return visitCommonType(KotlinBuiltIns.getInstance().getTuple(0), type);
return visitCommonType(KotlinBuiltIns.getInstance().getUnit(), type);
}
return visitCommonType(longName, type);