TypeScript/tests/baselines/reference/typeCheckTypeArgument.errors.txt

36 lines
1.1 KiB
Plaintext

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