KT-2376 java.lang.Number should be visible in Kotlin as jet.Number

#KT-2376 Fixed
This commit is contained in:
Alexander Udalov
2012-07-10 18:31:05 +04:00
parent 8012725d38
commit 5cc043314d
4 changed files with 29 additions and 1 deletions
@@ -98,6 +98,7 @@ public class JetStandardLibrary {
private ClassDescriptor throwableClass;
private JetType numberType;
private JetType nullableNumberType;
private JetType stringType;
private JetType volatileType;
private JetType nullableStringType;
@@ -180,6 +181,7 @@ public class JetStandardLibrary {
this.comparableClass = (ClassDescriptor) libraryScope.getClassifier(Name.identifier("Comparable"));
this.numberType = new JetTypeImpl(getNumber());
this.nullableNumberType = TypeUtils.makeNullable(numberType);
this.stringType = new JetTypeImpl(getString());
this.charSequenceType = new JetTypeImpl(getCharSequence());
this.nullableCharSequenceType = TypeUtils.makeNullable(charSequenceType);
@@ -519,6 +521,12 @@ public class JetStandardLibrary {
}
public JetType getNumberType() {
initStdClasses();
return numberType;
}
public JetType getNullableNumberType() {
initStdClasses();
return nullableNumberType;
}
}