42 lines
998 B
Text
42 lines
998 B
Text
=== tests/cases/compiler/checkForObjectTooStrict.ts ===
|
|
module Foo {
|
|
>Foo : Symbol(Foo, Decl(checkForObjectTooStrict.ts, 0, 0))
|
|
|
|
export class Object {
|
|
>Object : Symbol(Object, Decl(checkForObjectTooStrict.ts, 0, 12))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Bar extends Foo.Object { // should work
|
|
>Bar : Symbol(Bar, Decl(checkForObjectTooStrict.ts, 6, 1))
|
|
>Foo.Object : Symbol(Foo.Object, Decl(checkForObjectTooStrict.ts, 0, 12))
|
|
>Foo : Symbol(Foo, Decl(checkForObjectTooStrict.ts, 0, 0))
|
|
>Object : Symbol(Foo.Object, Decl(checkForObjectTooStrict.ts, 0, 12))
|
|
|
|
constructor () {
|
|
|
|
super();
|
|
>super : Symbol(Foo.Object, Decl(checkForObjectTooStrict.ts, 0, 12))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
class Baz extends Object {
|
|
>Baz : Symbol(Baz, Decl(checkForObjectTooStrict.ts, 18, 1))
|
|
>Object : Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
|
|
|
|
constructor () { // ERROR, as expected
|
|
|
|
super();
|
|
>super : Symbol(ObjectConstructor, Decl(lib.d.ts, 124, 1))
|
|
|
|
}
|
|
|
|
}
|
|
|