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

32 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/compiler/callOverloads1.ts(1,7): error TS2300: Duplicate identifier 'Foo'.
2014-10-01 20:27:20 +02:00
tests/cases/compiler/callOverloads1.ts(9,10): error TS2300: Duplicate identifier 'Foo'.
tests/cases/compiler/callOverloads1.ts(9,10): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/callOverloads1.ts(17,1): error TS2348: Value of type 'typeof Foo' is not callable. Did you mean to include 'new'?
2014-10-01 02:15:18 +02:00
==== tests/cases/compiler/callOverloads1.ts (4 errors) ====
class Foo { // error
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
2014-07-13 01:04:16 +02:00
bar1() { /*WScript.Echo("bar1");*/ }
constructor(x: any) {
// WScript.Echo("Constructor function has executed");
}
}
function Foo(); // error
2014-10-01 20:27:20 +02:00
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
2014-08-19 00:35:37 +02:00
~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
2014-07-13 01:04:16 +02:00
function F1(s:string);
function F1(a:any) { return a;}
var f1 = new Foo("hey");
f1.bar1();
Foo();
~~~~~
!!! error TS2348: Value of type 'typeof Foo' is not callable. Did you mean to include 'new'?