[corlib] TypeSpec.Parse for non-assembly qualified names.
authorAleksey Kliger <aleksey@xamarin.com>
Tue, 5 Apr 2016 22:18:37 +0000 (18:18 -0400)
committerAleksey Kliger <aleksey@xamarin.com>
Wed, 6 Apr 2016 17:56:09 +0000 (13:56 -0400)
commite915178746d1856bb74c823d77256c6627af1802
treeecccb17d4b6fe1050c624393149232dfdd26c537
parentc5216405674317064faeb5c198351988dfe18bdc
[corlib] TypeSpec.Parse for non-assembly qualified names.

Previously for types like "Foo[P,Q]" the recursive call of the parser
would incorrectly consume the delimiter after a type argument (ie the
',' or ']') which would leave the caller potentially past the end of the
string which would signal a failed parse.  New behavior is to peek at
the delimiter but leave it up to the caller to consume.

Also `Type.GetType(name, null, null)` should behave like
`Type.GetType(name)` (previously it dropped generic type arguments).
mcs/class/corlib/System/TypeSpec.cs