TypeScript/tests/baselines/reference/typeQueryWithReservedWords.types

44 lines
1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryWithReservedWords.ts ===
class Controller {
>Controller : Controller
2014-08-15 23:33:16 +02:00
create() {
>create : () => void
2014-08-15 23:33:16 +02:00
}
delete() {
>delete : () => void
2014-08-15 23:33:16 +02:00
}
var() {
>var : () => void
2014-08-15 23:33:16 +02:00
}
}
interface IScope {
>IScope : IScope
2014-08-15 23:33:16 +02:00
create: typeof Controller.prototype.create;
>create : () => void
>Controller.prototype.create : () => void
>Controller.prototype : Controller
>Controller : typeof Controller
>prototype : Controller
>create : () => void
2014-08-15 23:33:16 +02:00
delete: typeof Controller.prototype.delete; // Should not error
>delete : () => void
>Controller.prototype.delete : () => void
>Controller.prototype : Controller
>Controller : typeof Controller
>prototype : Controller
>delete : () => void
2014-08-15 23:33:16 +02:00
var: typeof Controller.prototype.var; // Should not error
>var : () => void
>Controller.prototype.var : () => void
>Controller.prototype : Controller
>Controller : typeof Controller
>prototype : Controller
>var : () => void
2014-08-15 23:33:16 +02:00
}