Skip to content

Conversation

@yuit
Copy link
Contributor

@yuit yuit commented Apr 2, 2015

Address #2465

@mhegazy
Copy link
Contributor

mhegazy commented Apr 2, 2015

Can you file an issue for parsing modules in strict mode as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the error message a bit better when inside a class.. it is just a hard change for users migrating.

Yui T added 4 commits April 2, 2015 17:42
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
yuit added a commit that referenced this pull request Apr 4, 2015
@yuit yuit merged commit 5e7343f into master Apr 4, 2015
@yuit yuit deleted the parseClassInStrictMode branch April 4, 2015 01:59
@DanielRosenwasser
Copy link
Member

I'm not big on this error message; maybe we can do something with a diagnostic message chain like

Cannot name an identifier 'arguments' in strict mode.
    Class bodies are parsed in strict mode.

@DanielRosenwasser
Copy link
Member

Actually something closer to @yuit's original error:

Invalid use of '{0}' because class bodies are parsed in strict mode. 

or

Cannot name an identifier '{0}' because class bodies are parsed in strict mode. 

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants