Skip to content

Commit 56e0c6b

Browse files
committed
Accept new baselines
1 parent 02395a9 commit 56e0c6b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/baselines/reference/assertionTypePredicates1.errors.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(121,15): error T
55
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(122,15): error TS1228: A type predicate is only allowed in return type position for functions and methods.
66
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(123,15): error TS1228: A type predicate is only allowed in return type position for functions and methods.
77
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(124,15): error TS1228: A type predicate is only allowed in return type position for functions and methods.
8-
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(129,5): error TS2775: Control flow effects of calls to assertion and never-returning functions are reflected only when every variable or property referenced in the function expression is declared with an explicit type annotation.
9-
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(131,5): error TS2776: Control flow effects of calls to assertion and never-returning functions are reflected only when the function expression is an identifier or qualified-name.
10-
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(133,5): error TS2775: Control flow effects of calls to assertion and never-returning functions are reflected only when every variable or property referenced in the function expression is declared with an explicit type annotation.
8+
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(129,5): error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.
9+
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(131,5): error TS2776: Assertions require the call target to be an identifier or qualified name.
10+
tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(133,5): error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.
1111

1212

1313
==== tests/cases/conformance/controlFlow/assertionTypePredicates1.ts (10 errors) ====
@@ -155,15 +155,17 @@ tests/cases/conformance/controlFlow/assertionTypePredicates1.ts(133,5): error TS
155155
const assert = (value: unknown): asserts value => {}
156156
assert(typeof x === "string"); // Error
157157
~~~~~~
158-
!!! error TS2775: Control flow effects of calls to assertion and never-returning functions are reflected only when every variable or property referenced in the function expression is declared with an explicit type annotation.
158+
!!! error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.
159+
!!! related TS2728 tests/cases/conformance/controlFlow/assertionTypePredicates1.ts:128:11: 'assert' is declared here.
159160
const a = [assert];
160161
a[0](typeof x === "string"); // Error
161162
~~~~
162-
!!! error TS2776: Control flow effects of calls to assertion and never-returning functions are reflected only when the function expression is an identifier or qualified-name.
163+
!!! error TS2776: Assertions require the call target to be an identifier or qualified name.
163164
const t1 = new Test();
164165
t1.assert(typeof x === "string"); // Error
165166
~~~~~~~~~
166-
!!! error TS2775: Control flow effects of calls to assertion and never-returning functions are reflected only when every variable or property referenced in the function expression is declared with an explicit type annotation.
167+
!!! error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation.
168+
!!! related TS2728 tests/cases/conformance/controlFlow/assertionTypePredicates1.ts:132:11: 't1' is declared here.
167169
const t2: Test = new Test();
168170
t2.assert(typeof x === "string");
169171
}

0 commit comments

Comments
 (0)