2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/types/specifyingTypes/typeQueries/typeQueryWithReservedWords.ts ===
|
|
|
|
class Controller {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Controller : Controller
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
create() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>create : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
delete() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>delete : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
var() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>var : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IScope {
|
2015-04-16 01:44:20 +02:00
|
|
|
>IScope : IScope
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
create: typeof Controller.prototype.create;
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>var : () => void
|
|
|
|
>Controller.prototype.var : () => void
|
|
|
|
>Controller.prototype : Controller
|
|
|
|
>Controller : typeof Controller
|
|
|
|
>prototype : Controller
|
|
|
|
>var : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|