File: classExtendingNonConstructor.types

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 (43 lines) | stat: -rw-r--r-- 626 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
37
38
39
40
41
42
43
=== tests/cases/conformance/classes/classDeclarations/classExtendingNonConstructor.ts ===
var x: {};
>x : {}

function foo() {
>foo : () => void

    this.x = 1;
>this.x = 1 : 1
>this.x : any
>this : any
>x : any
>1 : 1
}

class C1 extends undefined { }
>C1 : C1
>undefined : undefined

class C2 extends true { }
>C2 : C2
>true : true

class C3 extends false { }
>C3 : C3
>false : false

class C4 extends 42 { }
>C4 : C4
>42 : 42

class C5 extends "hello" { }
>C5 : C5
>"hello" : "hello"

class C6 extends x { }
>C6 : C6
>x : {}

class C7 extends foo { }
>C7 : C7
>foo : () => void