Closed
Description
Taking into account the following code:
// bar.ts
export namespace bar {
export class Bar{}
}
import { bar } from './bar';
export const aliasBar = bar.Bar;
This results in an assertion rather than a diagnostic, I'm aware that the expression above is not legal, and as such, I think this should emit the same diagnostic as if the imported class didn't belong to a namespace:
ERROR AS234: Expression refers to a static element that does not compile to a value at runtime.
Compiler version: 0.18.21