2014-09-12 22:35:07 +02:00
|
|
|
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(3,19): error TS2304: Cannot find name 'UNKNOWN'.
|
|
|
|
tests/cases/compiler/typeCheckTypeArgument.ts(5,26): error TS2304: Cannot find name 'UNKNOWN'.
|
|
|
|
tests/cases/compiler/typeCheckTypeArgument.ts(7,21): error TS2304: Cannot find name 'UNKNOWN'.
|
|
|
|
tests/cases/compiler/typeCheckTypeArgument.ts(9,24): error TS2304: Cannot find name 'UNKNOWN'.
|
|
|
|
tests/cases/compiler/typeCheckTypeArgument.ts(12,22): error TS2304: Cannot find name 'UNKNOWN'.
|
|
|
|
tests/cases/compiler/typeCheckTypeArgument.ts(15,13): error TS2304: Cannot find name 'UNKNOWN'.
|
|
|
|
|
|
|
|
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! 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'.
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/typeCheckTypeArgument.ts (6 errors) ====
|
|
|
|
/// <reference no-default-lib="true"/>
|
|
|
|
|
|
|
|
var f: <T extends UNKNOWN>() => void;
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'UNKNOWN'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
interface IFoo<T extends UNKNOWN> { }
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'UNKNOWN'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
class Foo<T extends UNKNOWN> { }
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'UNKNOWN'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
function bar<T extends UNKNOWN>() { }
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'UNKNOWN'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
class Foo2 {
|
|
|
|
method<T extends UNKNOWN>() { }
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'UNKNOWN'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
(<T extends UNKNOWN>(a) => { });
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'UNKNOWN'.
|