File: implicitAnyInAmbientDeclaration2.d.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (36 lines) | stat: -rw-r--r-- 1,780 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
=== tests/cases/compiler/implicitAnyInAmbientDeclaration2.d.ts ===
declare function foo(x);  // this should be an error
>foo : Symbol(foo, Decl(implicitAnyInAmbientDeclaration2.d.ts, 0, 0))
>x : Symbol(x, Decl(implicitAnyInAmbientDeclaration2.d.ts, 0, 21))

declare var bar;  // this should be be an erro
>bar : Symbol(bar, Decl(implicitAnyInAmbientDeclaration2.d.ts, 1, 11))

declare class C {
>C : Symbol(C, Decl(implicitAnyInAmbientDeclaration2.d.ts, 1, 16))

    public publicMember;  // this should be an error
>publicMember : Symbol(C.publicMember, Decl(implicitAnyInAmbientDeclaration2.d.ts, 2, 17))

    private privateMember;  // this should not be an error
>privateMember : Symbol(C.privateMember, Decl(implicitAnyInAmbientDeclaration2.d.ts, 3, 24))

    public publicFunction(x);  // this should be an error
>publicFunction : Symbol(C.publicFunction, Decl(implicitAnyInAmbientDeclaration2.d.ts, 4, 26))
>x : Symbol(x, Decl(implicitAnyInAmbientDeclaration2.d.ts, 6, 26))

    private privateFunction(privateParam);  // this should not be an error
>privateFunction : Symbol(C.privateFunction, Decl(implicitAnyInAmbientDeclaration2.d.ts, 6, 29))
>privateParam : Symbol(privateParam, Decl(implicitAnyInAmbientDeclaration2.d.ts, 7, 28))

    private constructor(privateParam);  // this should not be an error
>privateParam : Symbol(privateParam, Decl(implicitAnyInAmbientDeclaration2.d.ts, 8, 24))
}

declare class D {
>D : Symbol(D, Decl(implicitAnyInAmbientDeclaration2.d.ts, 9, 1))

    public constructor(publicConsParam, int: number);  // this should be an error
>publicConsParam : Symbol(publicConsParam, Decl(implicitAnyInAmbientDeclaration2.d.ts, 12, 23))
>int : Symbol(int, Decl(implicitAnyInAmbientDeclaration2.d.ts, 12, 39))
}