TypeScript/tests/baselines/reference/properties.types

20 lines
508 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/properties.ts ===
class MyClass
2015-04-13 23:01:57 +02:00
>MyClass : MyClass, Symbol(MyClass, Decl(properties.ts, 0, 0))
2014-08-15 23:33:16 +02:00
{
public get Count(): number
2015-04-13 23:01:57 +02:00
>Count : number, Symbol(Count, Decl(properties.ts, 2, 1), Decl(properties.ts, 6, 5))
2014-08-15 23:33:16 +02:00
{
return 42;
2015-04-13 21:36:11 +02:00
>42 : number
2014-08-15 23:33:16 +02:00
}
public set Count(value: number)
2015-04-13 23:01:57 +02:00
>Count : number, Symbol(Count, Decl(properties.ts, 2, 1), Decl(properties.ts, 6, 5))
>value : number, Symbol(value, Decl(properties.ts, 8, 21))
2014-08-15 23:33:16 +02:00
{
//
}
}