Small fix in nullablilty handling
This commit is contained in:
@@ -21,8 +21,8 @@ alpha{color:blue}*{*{color}beta{color:blue}*}*{color} denotes a nonempty _beta_-
|
|||||||
|
|
||||||
h1. Semicolons
|
h1. Semicolons
|
||||||
|
|
||||||
*Up* provides "semicolon inference": syntactically, subsentences (e.g., statements, declarations etc) are separated by
|
[Up] provides "semicolon inference": syntactically, subsentences (e.g., statements, declarations etc) are separated by
|
||||||
the pseudo-token [SEMI|#SEMI], which stands for "semicolon or newline". In most cases, there's no need for semicolons in
|
the pseudo-token [SEMI|#SEMI], which stands for "semicolon or newline". In most cases, there's no need for semicolons in
|
||||||
*Up* code.
|
[Up] code.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class TypeInfo<T> implements JetObject {
|
|||||||
if (!theClass.isAssignableFrom(other.theClass)) {
|
if (!theClass.isAssignableFrom(other.theClass)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (nullable != other.nullable) {
|
if (nullable && !other.nullable) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (typeParameters != null) {
|
if (typeParameters != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user