mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-14 09:49:40 -05:00
Updated tests.
This commit is contained in:
@@ -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) { }
|
||||
|
||||
Reference in New Issue
Block a user