tests/cases/compiler/sourceMapSample.ts(14,37): error TS2305: Module 'Foo.Bar' has no exported member 'Greeter'.
==== tests/cases/compiler/sourceMapSample.ts (1 errors) ====
module Foo.Bar {
"use strict";
class Greeter {
constructor(public greeting: string) {
}
greet() {
return "
" + this.greeting + "
";
}
}
function foo(greeting: string): Foo.Bar.Greeter {
~~~~~~~~~~~~~~~
!!! error TS2305: Module 'Foo.Bar' has no exported member 'Greeter'.
return new Greeter(greeting);
}
var greeter = new Greeter("Hello, world!");
var str = greeter.greet();
function foo2(greeting: string, ...restGreetings: string[]) {
var greeters: Greeter[] = [];
greeters[0] = new Greeter(greeting);
for (var i = 0; i < restGreetings.length; i++) {
greeters.push(new Greeter(restGreetings[i]));
}
return greeters;
}
var b = foo2("Hello", "World", "!");
for (var j = 0; j < b.length; j++) {
b[j].greet();
}
}