File tree 1 file changed +4
-4
lines changed
tests/baselines/reference 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class Public2 {
76
76
}
77
77
78
78
function f1(x: Private & Private2) {
79
- >f1 : (x: never ) => void
79
+ >f1 : (x: Private & Private2 ) => void
80
80
>x : never
81
81
82
82
x.p; // Error, private constituent makes property inaccessible
@@ -86,7 +86,7 @@ function f1(x: Private & Private2) {
86
86
}
87
87
88
88
function f2(x: Private & Protected) {
89
- >f2 : (x: never ) => void
89
+ >f2 : (x: Private & Protected ) => void
90
90
>x : never
91
91
92
92
x.p; // Error, private constituent makes property inaccessible
@@ -96,7 +96,7 @@ function f2(x: Private & Protected) {
96
96
}
97
97
98
98
function f3(x: Private & Public) {
99
- >f3 : (x: never ) => void
99
+ >f3 : (x: Private & Public ) => void
100
100
>x : never
101
101
102
102
x.p; // Error, private constituent makes property inaccessible
@@ -345,7 +345,7 @@ function f7(x: ProtectedGeneric<{}> & ProtectedGeneric<{}>) {
345
345
}
346
346
347
347
function f8(x: ProtectedGeneric<{a: void;}> & ProtectedGeneric2<{a:void;b:void;}>) {
348
- >f8 : (x: never ) => void
348
+ >f8 : (x: ProtectedGeneric<{ a: void;}> & ProtectedGeneric2<{ a: void; b: void;}> ) => void
349
349
>x : never
350
350
>a : void
351
351
>a : void
You can’t perform that action at this time.
0 commit comments