mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
more baselines. revert unintentional change to harness.ts.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
tests/cases/compiler/typeParameterInConstraint1.ts(1,12): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
||||
|
||||
|
||||
==== tests/cases/compiler/typeParameterInConstraint1.ts (1 errors) ====
|
||||
class C<T, U extends T> {
|
||||
~~~~~~~~~~~
|
||||
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
||||
}
|
||||
10
tests/baselines/reference/typeParameterInConstraint1.js
Normal file
10
tests/baselines/reference/typeParameterInConstraint1.js
Normal file
@@ -0,0 +1,10 @@
|
||||
//// [typeParameterInConstraint1.ts]
|
||||
class C<T, U extends T> {
|
||||
}
|
||||
|
||||
//// [typeParameterInConstraint1.js]
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
return C;
|
||||
})();
|
||||
2
tests/cases/compiler/typeParameterInConstraint1.ts
Normal file
2
tests/cases/compiler/typeParameterInConstraint1.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
class C<T, U extends T> {
|
||||
}
|
||||
Reference in New Issue
Block a user