11 lines
320 B
Text
11 lines
320 B
Text
|
=== tests/cases/compiler/functionAssignmentError.ts ===
|
||
|
var func = function (){return "ONE";};
|
||
|
>func : () => string
|
||
|
>function (){return "ONE";} : () => string
|
||
|
|
||
|
func = function (){return "ONE";};
|
||
|
>func = function (){return "ONE";} : () => string
|
||
|
>func : () => string
|
||
|
>function (){return "ONE";} : () => string
|
||
|
|