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