31 lines
281 B
TypeScript
31 lines
281 B
TypeScript
|
module Foo {
|
||
|
|
||
|
export class Object {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
class Bar extends Foo.Object { // should work
|
||
|
|
||
|
constructor () {
|
||
|
|
||
|
super();
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
class Baz extends Object {
|
||
|
|
||
|
constructor () { // ERROR, as expected
|
||
|
|
||
|
super();
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|