TypeScript/tests/baselines/reference/augmentedTypesClass3.types

34 lines
623 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/augmentedTypesClass3.ts ===
// class then module
class c5 { public foo() { } }
>c5 : c5
>foo : () => void
2014-08-15 23:33:16 +02:00
module c5 { } // should be ok
>c5 : typeof c5
2014-08-15 23:33:16 +02:00
class c5a { public foo() { } }
>c5a : c5a
>foo : () => void
2014-08-15 23:33:16 +02:00
module c5a { var y = 2; } // should be ok
>c5a : typeof c5a
>y : number
2015-04-13 21:36:11 +02:00
>2 : number
2014-08-15 23:33:16 +02:00
class c5b { public foo() { } }
>c5b : c5b
>foo : () => void
2014-08-15 23:33:16 +02:00
module c5b { export var y = 2; } // should be ok
>c5b : typeof c5b
>y : number
2015-04-13 21:36:11 +02:00
>2 : number
2014-08-15 23:33:16 +02:00
//// class then import
class c5c { public foo() { } }
>c5c : c5c
>foo : () => void
2014-08-15 23:33:16 +02:00
//import c5c = require('');