mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Updated tests.
This commit is contained in:
parent
c8b459f32c
commit
5f9983a698
@ -1,3 +1,3 @@
|
||||
// @allowUnreachableCode: true
|
||||
|
||||
var f: (x: 'hi') => number = ('hi') => { return 1; };
|
||||
var f: (x: 'hi') => number = (x: 'hi') => { return 1; };
|
||||
@ -1,5 +1,4 @@
|
||||
// Specialized signatures must be a subtype of a non-specialized signature
|
||||
// All the below should be errors
|
||||
// @declaration: true
|
||||
|
||||
function foo(x: 'a');
|
||||
function foo(x: number) { }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user