2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/autonumberingInEnums.ts ===
|
|
|
|
enum Foo {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo, Symbol(Foo, Decl(autonumberingInEnums.ts, 0, 0), Decl(autonumberingInEnums.ts, 2, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a = 1
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : Foo, Symbol(Foo.a, Decl(autonumberingInEnums.ts, 0, 10))
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum Foo {
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo, Symbol(Foo, Decl(autonumberingInEnums.ts, 0, 0), Decl(autonumberingInEnums.ts, 2, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b // should work fine
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : Foo, Symbol(Foo.b, Decl(autonumberingInEnums.ts, 4, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|