Skip to content

Commit 5f9983a

Browse files
Updated tests.
1 parent c8b459f commit 5f9983a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// @allowUnreachableCode: true
22

3-
var f: (x: 'hi') => number = ('hi') => { return 1; };
3+
var f: (x: 'hi') => number = (x: 'hi') => { return 1; };

tests/cases/conformance/types/objectTypeLiteral/callSignatures/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Specialized signatures must be a subtype of a non-specialized signature
2-
// All the below should be errors
1+
// @declaration: true
32

43
function foo(x: 'a');
54
function foo(x: number) { }

0 commit comments

Comments
 (0)