mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Fix build break: difference result from treating things as literal type
This commit is contained in:
parent
fcdc07ef12
commit
0b5c8cee37
@ -9,7 +9,7 @@ declare function decorator(x: string): any;
|
||||
@decorator("hello")
|
||||
>decorator("hello") : any
|
||||
>decorator : (x: string) => any
|
||||
>"hello" : string
|
||||
>"hello" : "hello"
|
||||
|
||||
class Remote { }
|
||||
>Remote : Remote
|
||||
@ -21,7 +21,7 @@ class Remote { }
|
||||
@decorator("hi")
|
||||
>decorator("hi") : any
|
||||
>decorator : (x: string) => any
|
||||
>"hi" : string
|
||||
>"hi" : "hi"
|
||||
|
||||
class AnotherRomote {
|
||||
>AnotherRomote : AnotherRomote
|
||||
|
||||
@ -6,7 +6,7 @@ export enum Color {
|
||||
>Color : Color
|
||||
|
||||
r, g, b
|
||||
>r : Color
|
||||
>g : Color
|
||||
>b : Color
|
||||
>r : Color.r
|
||||
>g : Color.g
|
||||
>b : Color.b
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user