File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
javatests/com/google/j2cl/integration/java/j2ktiosinterop
java/com/google/j2cl/transpiler/backend/kotlin Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ internal class J2ObjCCompatRenderer(private val objCNamePrefix: String) {
560560 declaredObjCDependentSource(typeDescriptor)
561561 // TODO: Handle TypeVariable and Array
562562 else -> id
563- }.runIf(typeDescriptor.isNullable ) { toNullable() }
563+ }.runIf(typeDescriptor.canBeNull() ) { toNullable() }
564564
565565 private fun primitiveObjCDependentSource (
566566 primitiveTypeDescriptor : PrimitiveTypeDescriptor
Original file line number Diff line number Diff line change @@ -588,8 +588,7 @@ - (void)testPlatform {
588588- (void )testNullability {
589589 J2ktiosinteropNullability_acceptNullableWithId_ (nil );
590590 J2ktiosinteropNullability_acceptNullableWithNonNullBoundWithId_ (nil );
591- // TODO(b/460155951): Uncomment when fixed.
592- // J2ktiosinteropNullability_acceptWithNullableBoundWithId_(nil);
591+ J2ktiosinteropNullability_acceptWithNullableBoundWithId_ (nil );
593592 J2ktiosinteropNullability_acceptNullableWithNullableBoundWithId_ (nil );
594593}
595594
Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ final class J2ktSwiftInteropTest: XCTestCase {
205205 func testNullability( ) {
206206 J2ktiosinteropNullability_acceptNullableWithId_ ( nil )
207207 J2ktiosinteropNullability_acceptNullableWithNonNullBoundWithId_ ( nil )
208- // TODO(b/460155951): Uncomment when fixed.
209- // J2ktiosinteropNullability_acceptWithNullableBoundWithId_(nil);
208+ J2ktiosinteropNullability_acceptWithNullableBoundWithId_ ( nil ) ;
210209 J2ktiosinteropNullability_acceptNullableWithNullableBoundWithId_ ( nil )
211210 }
212211}
You can’t perform that action at this time.
0 commit comments