File: errorMessagesIntersectionTypes02.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 (38 lines) | stat: -rw-r--r-- 1,565 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
=== tests/cases/compiler/errorMessagesIntersectionTypes02.ts ===
interface Foo {
>Foo : Symbol(Foo, Decl(errorMessagesIntersectionTypes02.ts, 0, 0))

    fooProp: "hello" | "world";
>fooProp : Symbol(Foo.fooProp, Decl(errorMessagesIntersectionTypes02.ts, 0, 15))
}

interface Bar {
>Bar : Symbol(Bar, Decl(errorMessagesIntersectionTypes02.ts, 2, 1))

    barProp: string;
>barProp : Symbol(Bar.barProp, Decl(errorMessagesIntersectionTypes02.ts, 4, 15))
}

interface FooBar extends Foo, Bar {
>FooBar : Symbol(FooBar, Decl(errorMessagesIntersectionTypes02.ts, 6, 1))
>Foo : Symbol(Foo, Decl(errorMessagesIntersectionTypes02.ts, 0, 0))
>Bar : Symbol(Bar, Decl(errorMessagesIntersectionTypes02.ts, 2, 1))
}

declare function mixBar<T>(obj: T): T & Bar;
>mixBar : Symbol(mixBar, Decl(errorMessagesIntersectionTypes02.ts, 9, 1))
>T : Symbol(T, Decl(errorMessagesIntersectionTypes02.ts, 11, 24))
>obj : Symbol(obj, Decl(errorMessagesIntersectionTypes02.ts, 11, 27))
>T : Symbol(T, Decl(errorMessagesIntersectionTypes02.ts, 11, 24))
>T : Symbol(T, Decl(errorMessagesIntersectionTypes02.ts, 11, 24))
>Bar : Symbol(Bar, Decl(errorMessagesIntersectionTypes02.ts, 2, 1))

let fooBar: FooBar = mixBar({
>fooBar : Symbol(fooBar, Decl(errorMessagesIntersectionTypes02.ts, 13, 3))
>FooBar : Symbol(FooBar, Decl(errorMessagesIntersectionTypes02.ts, 6, 1))
>mixBar : Symbol(mixBar, Decl(errorMessagesIntersectionTypes02.ts, 9, 1))

    fooProp: "frizzlebizzle"
>fooProp : Symbol(fooProp, Decl(errorMessagesIntersectionTypes02.ts, 13, 29))

});