18 lines
277 B
Text
18 lines
277 B
Text
=== tests/cases/compiler/properties.ts ===
|
|
class MyClass
|
|
>MyClass : MyClass
|
|
{
|
|
public get Count(): number
|
|
>Count : number
|
|
{
|
|
return 42;
|
|
>42 : 42
|
|
}
|
|
|
|
public set Count(value: number)
|
|
>Count : number
|
|
>value : number
|
|
{
|
|
//
|
|
}
|
|
}
|