TypeScript/tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision5.types
Vladimir Matveev f06423bffc Revert "add part of test baselines"
This reverts commit 502b2ba321.
2016-03-09 17:08:26 -08:00

54 lines
863 B
Plaintext

=== tests/cases/compiler/db.ts ===
export default class db {
>db : db
public doSomething() {
>doSomething : () => void
}
}
=== tests/cases/compiler/service.ts ===
import db from './db';
>db : typeof db
function someDecorator(target) {
>someDecorator : (target: any) => any
>target : any
return target;
>target : any
}
@someDecorator
>someDecorator : (target: any) => any
class MyClass {
>MyClass : MyClass
db: db;
>db : db
>db : db
constructor(db: db) { // collision
>db : db
>db : db
this.db = db;
>this.db = db : db
>this.db : db
>this : this
>db : db
>db : db
this.db.doSomething();
>this.db.doSomething() : void
>this.db.doSomething : () => void
>this.db : db
>this : this
>db : db
>doSomething : () => void
}
}
export {MyClass};
>MyClass : typeof MyClass