Skip to content

Fix some typos in Static shorthand proposal#4229

Open
sgrekhov wants to merge 2 commits intodart-lang:mainfrom
sgrekhov:shorthand-fix-2
Open

Fix some typos in Static shorthand proposal#4229
sgrekhov wants to merge 2 commits intodart-lang:mainfrom
sgrekhov:shorthand-fix-2

Conversation

@sgrekhov
Copy link
Contributor

@sgrekhov sgrekhov commented Jan 13, 2025

  • <selector*> changed to <selector>*
  • Duplication in "Expressions of the forms .new<typeArgs> or .new<typeArgs>..." changed to "Expressions of the forms .new<typeArgs> or .new<typeArgs>(args)..."
  • "... or a pattern has the form == e2..." added "or != e2"
  • accidental character removed
  • staticIdentifierShorthandHead -> staticMemberShorthandHead

the corresponding <code>*T*.new\<*typeArgs*\></code>
and <code>*T*.new\<*typeArgs*\></code> already are, whether used as instantiated
tear-off or invoked.
and <code>*T*.new\<*typeArgs*\>(*args*)</code> already are, whether used as
Copy link
Member

Choose a reason for hiding this comment

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

I believe the original code is what @lrhn intended here, but I'm not sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original code looks like "Expressions of the forms .new<typeArgs> or .new<typeArgs>...just like the corresponding T.new<typeArgs> and T.new<typeArgs>...".

(T).new<typeArgs> is repeated twice. I believe that the second one was intended to have an arguments part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants