# Bug Report ### 🔎 Search Terms bypass private element access <!-- What search terms did you use when trying to find an existing bug report? List them here so people in the future can find this one more easily. --> ### 🕗 Version & Regression Information <!-- When did you start seeing this bug occur? "Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs If possible, please try testing the nightly version of TS to see if it's already been fixed. For npm: `typescript@next` This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly Note: The TypeScript Playground can be used to try older versions of TypeScript. Please keep and fill in the line that best applies: --> - I tested it on the master branch ### 💻 Code <!-- Please post the relevant code sample here as well--> ```ts class X { private x: number } new X()['x'] ``` ### 🙁 Actual behavior No error ### 🙂 Expected behavior Type Error