Small fix in nullablilty handling

This commit is contained in:
Andrey Breslav
2011-07-04 14:34:04 +04:00
parent ef30fde1c2
commit 96cd0d1ae2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ alpha{color:blue}*{*{color}beta{color:blue}*}*{color} denotes a nonempty _beta_-
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
*Up* code.
[Up] code.
*/
+1 -1
View File
@@ -37,7 +37,7 @@ public class TypeInfo<T> implements JetObject {
if (!theClass.isAssignableFrom(other.theClass)) {
return false;
}
if (nullable != other.nullable) {
if (nullable && !other.nullable) {
return false;
}
if (typeParameters != null) {