2014-09-18 02:05:45 +02:00
|
|
|
tests/cases/compiler/functionOverloads5.ts(2,10): error TS2385: Overload signatures must all be public, private or protected.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/functionOverloads5.ts (1 errors) ====
|
|
|
|
class baz {
|
|
|
|
public foo();
|
|
|
|
~~~
|
2014-09-18 02:05:45 +02:00
|
|
|
!!! error TS2385: Overload signatures must all be public, private or protected.
|
2014-07-13 01:04:16 +02:00
|
|
|
private foo(bar?:any){ }
|
|
|
|
}
|
|
|
|
|