11 lines
370 B
Text
11 lines
370 B
Text
|
==== tests/cases/compiler/overloadsInDifferentContainersDisagreeOnAmbient.ts (1 errors) ====
|
||
|
declare module M {
|
||
|
// Error because body is not ambient and this overload is
|
||
|
export function f();
|
||
|
}
|
||
|
|
||
|
module M {
|
||
|
export function f() { }
|
||
|
~
|
||
|
!!! Overload signatures must all be ambient or non-ambient.
|
||
|
}
|