File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ int main() {
33
33
34
34
// This should be UB.
35
35
function<int (void )> y{nullptr };
36
+
36
37
{
37
38
auto x{make_shared<int >(4 )};
38
39
y = f (x);
39
40
}
41
+
40
42
cout << y () << endl;
41
43
42
44
// This is uninitialized.
Original file line number Diff line number Diff line change @@ -462,7 +462,8 @@ def attack_and_defend(self) -> None:
462
462
463
463
def codependent_generic ():
464
464
# Using generic to solve this.
465
- # I think I noticed this is possible by reading the source code of spark.
465
+ # I think I noticed this is possible by first thinking how `typing.Self` is implemented,
466
+ # then expanded horizons by reading the source code of spark.
466
467
_B = TypeVar ("_B" , bound = "B" )
467
468
_A = TypeVar ("_A" , bound = "A" )
468
469
You can’t perform that action at this time.
0 commit comments