TypeScript-TmLanguage/tests/cases/Issue376.ts

10 строки
201 B
TypeScript

interface Itest {
a: 'a1' // a1 is good
| 'a2' // a2 is good
| 'a3' // a3 is good
b: {
a: 'a1'
| 'a2' // oh , the color is not good !
| 'a3' // oh , the color is not good !
}
}