Adding comment to test

This commit is contained in:
Anders Hejlsberg
2016-03-09 11:37:40 -08:00
parent 1d181360cc
commit 4f441bd553
4 changed files with 402 additions and 388 deletions

View File

@@ -1,4 +1,7 @@
//// [staticAnonymousTypeNotReferencingTypeParameter.ts]
// This test case is a condensed version of Angular 2's ListWrapper. Prior to #7448
// this would cause the compiler to run out of memory.
function outer<T>(x: T) {
class Inner {
static y: T = x;
@@ -139,6 +142,8 @@ interface Array<T> {
}
//// [staticAnonymousTypeNotReferencingTypeParameter.js]
// This test case is a condensed version of Angular 2's ListWrapper. Prior to #7448
// this would cause the compiler to run out of memory.
function outer(x) {
var Inner = (function () {
function Inner() {

View File

@@ -1,4 +1,7 @@
=== tests/cases/compiler/staticAnonymousTypeNotReferencingTypeParameter.ts ===
// This test case is a condensed version of Angular 2's ListWrapper. Prior to #7448
// this would cause the compiler to run out of memory.
function outer<T>(x: T) {
>outer : <T>(x: T) => typeof Inner
>T : T

View File

@@ -1,3 +1,6 @@
// This test case is a condensed version of Angular 2's ListWrapper. Prior to #7448
// this would cause the compiler to run out of memory.
function outer<T>(x: T) {
class Inner {
static y: T = x;