File: tsxDeepAttributeAssignabilityError.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 (50 lines) | stat: -rw-r--r-- 1,593 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
44
45
46
47
48
49
50
=== tests/cases/compiler/my-component.tsx ===
import * as React from 'react'
>React : Symbol(React, Decl(my-component.tsx, 0, 6))

interface MyProps {
>MyProps : Symbol(MyProps, Decl(my-component.tsx, 0, 30))

    x: string;
>x : Symbol(MyProps.x, Decl(my-component.tsx, 2, 19))

    y: MyInnerProps;
>y : Symbol(MyProps.y, Decl(my-component.tsx, 3, 14))
>MyInnerProps : Symbol(MyInnerProps, Decl(my-component.tsx, 5, 1))
}

interface MyInnerProps {
>MyInnerProps : Symbol(MyInnerProps, Decl(my-component.tsx, 5, 1))

    value: string;
>value : Symbol(MyInnerProps.value, Decl(my-component.tsx, 7, 24))
}

export function MyComponent(_props: MyProps) {
>MyComponent : Symbol(MyComponent, Decl(my-component.tsx, 9, 1))
>_props : Symbol(_props, Decl(my-component.tsx, 11, 28))
>MyProps : Symbol(MyProps, Decl(my-component.tsx, 0, 30))

    return <span>my component</span>;
>span : Symbol(JSX.IntrinsicElements.span, Decl(react.d.ts, 2461, 51))
>span : Symbol(JSX.IntrinsicElements.span, Decl(react.d.ts, 2461, 51))
}

=== tests/cases/compiler/file1.tsx ===
import * as React from 'react'
>React : Symbol(React, Decl(file1.tsx, 0, 6))

import { MyComponent } from './my-component'
>MyComponent : Symbol(MyComponent, Decl(file1.tsx, 1, 8))

export const result = <MyComponent x="yes" y={{
>result : Symbol(result, Decl(file1.tsx, 3, 12))
>MyComponent : Symbol(MyComponent, Decl(file1.tsx, 1, 8))
>x : Symbol(x, Decl(file1.tsx, 3, 34))
>y : Symbol(y, Decl(file1.tsx, 3, 42))

    value: 42
>value : Symbol(value, Decl(file1.tsx, 3, 47))

}} />;