[J2KT] Enforce NullLiteral to have nullable type.
@@ -23,7 +23,7 @@ import com.google.j2cl.common.visitor.Visitable;
public class NullLiteral extends Literal {
static NullLiteral get(TypeDescriptor typeDescriptor) {
- return new NullLiteral(typeDescriptor);
+ return new NullLiteral(typeDescriptor.toNullable());
}
private NullLiteral(TypeDescriptor typeDescriptor) {
