1// @module: commonjs 2export var Foo = 2; 3export var Foo = 42; // Should error 4 5export interface Bar { 6 _brand1: any; 7} 8 9export interface Bar { // Shouldn't error 10 _brand2: any; 11} 12 13export namespace FooBar { 14 export var member1 = 2; 15} 16 17export namespace FooBar { // Shouldn't error 18 export var member2 = 42; 19} 20 21export class Kettle { 22 member1 = 2; 23} 24 25export class Kettle { // Should error 26 member2 = 42; 27} 28 29export var Pot = 2; 30Pot = 42; // Shouldn't error 31 32export enum Utensils { 33 Spoon, 34 Fork, 35 Knife 36} 37 38export enum Utensils { // Shouldn't error 39 Spork = 3 40} 41