TypeScript/tests/cases/compiler/libMembers.ts

15 lines
243 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
var s="hello";
s.substring(0);
s.substring(3,4);
s.subby(12); // error unresolved
String.fromCharCode(12);
module M {
export class C {
}
var a=new C[];
a.length;
a.push(new C());
(new C()).prototype;
}