You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are other cases when string literal rename refactor (#39298) deosn't work
Example:
typeFoo='donald'|'joe'// allow to rename any of these values// basic usageconstfoo: Foo='joe '// using string literal:switch(foo){case'donald': ...
case'joe': ...
}
After literals rename:
Actual
typeFoo='donald duck'|'pizza joe'// allow me to rename any of these values// basic usageconstfoo: Foo='pizza joe '// this works// rename doesn't workswitch(foo){case'donald': ...
case'joe': ...
}
Expected:
// using string literal// should rename here tooswitch(foo){case'donald duck': ...
case'pizza joe': ...
}
typescript next 4.2.0-dev20201210
There are other cases when string literal rename refactor (#39298) deosn't work
Example:
After literals rename:
Actual
Expected:
Related:
#41489
#41922
The text was updated successfully, but these errors were encountered: