// Regression test: class declarations with static property assignments // outside the class body must not produce spurious errors when there is // no matching declare namespace. The assignments should be contextually // typed from the class's declared static property types. class Foo { static scanners: Map; static items: Array; } Foo.scanners = new Map(); Foo.items = []; class Bar { static subscriptions: Map; } Bar.subscriptions = new Map(); export class ExportedFoo { static data: Map; } ExportedFoo.data = new Map(); export default class DefaultFoo { static data: Map; } DefaultFoo.data = new Map();