TypeScript/tests/baselines/reference/typeCheckTypeArgument.errors.txt
2014-09-11 16:11:08 -07:00

36 lines
1.3 KiB
Plaintext

!!! error TS2318: Cannot find global type 'Array'.
!!! error TS2318: Cannot find global type 'Boolean'.
!!! error TS2318: Cannot find global type 'Function'.
!!! error TS2318: Cannot find global type 'IArguments'.
!!! error TS2318: Cannot find global type 'Number'.
!!! error TS2318: Cannot find global type 'Object'.
!!! error TS2318: Cannot find global type 'RegExp'.
!!! error TS2318: Cannot find global type 'String'.
==== tests/cases/compiler/typeCheckTypeArgument.ts (6 errors) ====
/// <reference no-default-lib="true"/>
var f: <T extends UNKNOWN>() => void;
~~~~~~~
!!! error TS2304: Cannot find name 'UNKNOWN'.
interface IFoo<T extends UNKNOWN> { }
~~~~~~~
!!! error TS2304: Cannot find name 'UNKNOWN'.
class Foo<T extends UNKNOWN> { }
~~~~~~~
!!! error TS2304: Cannot find name 'UNKNOWN'.
function bar<T extends UNKNOWN>() { }
~~~~~~~
!!! error TS2304: Cannot find name 'UNKNOWN'.
class Foo2 {
method<T extends UNKNOWN>() { }
~~~~~~~
!!! error TS2304: Cannot find name 'UNKNOWN'.
}
(<T extends UNKNOWN>(a) => { });
~~~~~~~
!!! error TS2304: Cannot find name 'UNKNOWN'.