TypeScript Version: master branch
Repro
-
Create a new JavaScript->Windows->Universal->Blank App project
-
Add directories and empty files as following:
(App name)
|>sources
| |>cats
| | |>elephants
| | | foo.ts
| | bar.ts
sources/cats/elephants/foo.ts
sources/cats/bar.ts
-
Write codes as following:
// In sources/cats/elephants/foo.ts:
class Foo extends Bar {
}
// In sources/cats/bar.ts:
class Bar {
}
-
Open project properties and set "Combine JavaScript output into file" to "js/app.js"
-
Unload project
-
Reload project
Expected behavior:
Compiler should automatically make a proper order for the classes
Actual behavior:
class Foo extends Bar {
// ~~~
// A class must be declared after its base class.
}
Workaround:
Rename "foo.ts" to "a.ts".