File: classExtendingNonConstructor.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 (34 lines) | stat: -rw-r--r-- 1,088 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
=== tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts ===
var x: {};
>x : Symbol(x, Decl(classExtendingNonConstructor.ts, 0, 3))

function foo() {
>foo : Symbol(foo, Decl(classExtendingNonConstructor.ts, 0, 10))

    this.x = 1;
}

class C1 extends undefined { }
>C1 : Symbol(C1, Decl(classExtendingNonConstructor.ts, 4, 1))
>undefined : Symbol(undefined)

class C2 extends true { }
>C2 : Symbol(C2, Decl(classExtendingNonConstructor.ts, 6, 30))

class C3 extends false { }
>C3 : Symbol(C3, Decl(classExtendingNonConstructor.ts, 7, 25))

class C4 extends 42 { }
>C4 : Symbol(C4, Decl(classExtendingNonConstructor.ts, 8, 26))

class C5 extends "hello" { }
>C5 : Symbol(C5, Decl(classExtendingNonConstructor.ts, 9, 23))

class C6 extends x { }
>C6 : Symbol(C6, Decl(classExtendingNonConstructor.ts, 10, 28))
>x : Symbol(x, Decl(classExtendingNonConstructor.ts, 0, 3))

class C7 extends foo { }
>C7 : Symbol(C7, Decl(classExtendingNonConstructor.ts, 11, 22))
>foo : Symbol(foo, Decl(classExtendingNonConstructor.ts, 0, 10))