82 lines
3 KiB
Plaintext
82 lines
3 KiB
Plaintext
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts ===
|
|
function foo(x) { return x; }
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 0, 0))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 0, 13))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 0, 13))
|
|
|
|
var f = function foo(x) { return x; }
|
|
>f : Symbol(f, Decl(parametersWithNoAnnotationAreAny.ts, 1, 3))
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 1, 7))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 1, 21))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 1, 21))
|
|
|
|
var f2 = (x) => x;
|
|
>f2 : Symbol(f2, Decl(parametersWithNoAnnotationAreAny.ts, 2, 3))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 2, 10))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 2, 10))
|
|
|
|
var f3 = <T>(x) => x;
|
|
>f3 : Symbol(f3, Decl(parametersWithNoAnnotationAreAny.ts, 3, 3))
|
|
>T : Symbol(T, Decl(parametersWithNoAnnotationAreAny.ts, 3, 10))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 3, 13))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 3, 13))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(parametersWithNoAnnotationAreAny.ts, 3, 21))
|
|
|
|
foo(x) {
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 5, 9))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 6, 8))
|
|
|
|
return x;
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 6, 8))
|
|
}
|
|
}
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(parametersWithNoAnnotationAreAny.ts, 9, 1))
|
|
|
|
foo(x);
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 11, 13))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 12, 8))
|
|
|
|
foo2(x, y);
|
|
>foo2 : Symbol(foo2, Decl(parametersWithNoAnnotationAreAny.ts, 12, 11))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 13, 9))
|
|
>y : Symbol(y, Decl(parametersWithNoAnnotationAreAny.ts, 13, 11))
|
|
}
|
|
|
|
var a: {
|
|
>a : Symbol(a, Decl(parametersWithNoAnnotationAreAny.ts, 16, 3))
|
|
|
|
foo(x);
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 16, 8))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 17, 8))
|
|
}
|
|
|
|
var b = {
|
|
>b : Symbol(b, Decl(parametersWithNoAnnotationAreAny.ts, 20, 3))
|
|
|
|
foo(x) {
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 20, 9))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 21, 8))
|
|
|
|
return x;
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 21, 8))
|
|
|
|
},
|
|
a: function foo(x) {
|
|
>a : Symbol(a, Decl(parametersWithNoAnnotationAreAny.ts, 23, 6))
|
|
>foo : Symbol(foo, Decl(parametersWithNoAnnotationAreAny.ts, 24, 6))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 24, 20))
|
|
|
|
return x;
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 24, 20))
|
|
|
|
},
|
|
b: (x) => x
|
|
>b : Symbol(b, Decl(parametersWithNoAnnotationAreAny.ts, 26, 6))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 27, 8))
|
|
>x : Symbol(x, Decl(parametersWithNoAnnotationAreAny.ts, 27, 8))
|
|
}
|