TypeScript/tests/cases/compiler/switchComparableCompatForBrands.ts
2016-10-13 16:29:35 -07:00

14 lines
172 B
TypeScript

class MyBrand
{
private _a: number;
}
function test(strInput: string & MyBrand) {
switch(strInput)
{
case "a":
return 1;
}
return 0;
}