Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–12 unchanged (12 lines)
13declare const a: Foo<Date>;
14declare const b: Foo<Date | null>;
15
16//Expected 0, Actual 1
17type ShouldBe0 = Equals<typeof a, typeof b>;
18
19//// [conditionalEqualityTestingNullability.js]
20"use strict";
21Object.defineProperty(exports, "__esModule", { value: true });
22

After

…lines 1–12 unchanged (12 lines)
13declare const a: Foo<Date>;
14declare const b: Foo<Date | null>;
15
16//Expected 0, Actual 1
17type ShouldBe0 = Equals<typeof a, typeof b>;
18
19//// [conditionalEqualityTestingNullability.js]
20export {};
21

Before

program
comment "//// [tests/cases/compiler/conditionalEqualityTestingNullabi"...
comment "//// [conditionalEqualityTestingNullability.ts]"
ERROR (+65 nodes collapsed)
expression_statement
binary_expression
binary_expression
identifier "Foo"
< "<"
identifier "T"
> ">"
object
{ "{"
pair
property_identifier "x"
: ":"
arrow_function
formal_parameters
( "("
) ")"
=> "=>"
identifier "T"
} "}"
ERROR
identifier "declare"
identifier "const"
labeled_statement (+47 nodes collapsed)
comment "//// [conditionalEqualityTestingNullability.js]"
expression_statement
string
" "\""
string_fragment "use strict"
" "\""
; ";"
expression_statement
call_expression
member_expression
identifier "Object"
. "."
property_identifier "defineProperty"
arguments
( "("
identifier "exports"
, ","
string
" "\""
string_fragment "__esModule"
" "\""
, ","
object
{ "{"
pair
property_identifier "value"
: ":"
true "true"
} "}"
) ")"
; ";"

After

program
comment "//// [tests/cases/compiler/conditionalEqualityTestingNullabi"...
comment "//// [conditionalEqualityTestingNullability.ts]"
ERROR (+65 nodes collapsed)
expression_statement
binary_expression
binary_expression
identifier "Foo"
< "<"
identifier "T"
> ">"
object
{ "{"
pair
property_identifier "x"
: ":"
arrow_function
formal_parameters
( "("
) ")"
=> "=>"
identifier "T"
} "}"
ERROR
identifier "declare"
identifier "const"
labeled_statement (+47 nodes collapsed)
comment "//// [conditionalEqualityTestingNullability.js]"
export_statement
export "export"
export_clause
{ "{"
} "}"
; ";"