more baselines. revert unintentional change to harness.ts.

This commit is contained in:
Cyrus Najmabadi
2014-12-03 22:14:55 -08:00
parent e6d1e39fb7
commit 4db419d93c
7 changed files with 24 additions and 44 deletions

View File

@@ -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.
}

View File

@@ -0,0 +1,10 @@
//// [typeParameterInConstraint1.ts]
class C<T, U extends T> {
}
//// [typeParameterInConstraint1.js]
var C = (function () {
function C() {
}
return C;
})();

View File

@@ -0,0 +1,2 @@
class C<T, U extends T> {
}