Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #341 from SergeyTeplyakov/bugs/bug340
Browse files Browse the repository at this point in the history
Fix for #340.
  • Loading branch information
SergeyTeplyakov committed Feb 7, 2016
2 parents c3576bd + 9051a97 commit 4c215e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions System.Compiler/Reader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4257,6 +4257,18 @@ private string GetIdentifier(TypeNameIdentifiers identifierType) {
this.currentItr++;
switch (c) {
case ',':
// A comma may separate a type name from its assembly name or a type argument from
// another type argument.
// If processing non-type argument or a type argument with assembly name,
// process the characters after the comma as an assembly name.
//
// If the next character is whitespace, assume that it delineates the start of an assembly name so
// end the current identifier by going to done label.
if (this.currentItr < this.typeNameString.Length && char.IsWhiteSpace(this.typeNameString[this.currentItr]))
{
goto done;
}
break;
case '[':
case ']':
case '&':
Expand Down

0 comments on commit 4c215e2

Please sign in to comment.