diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2015-09-15 09:09:48 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2015-09-15 09:09:48 +0300 |
commit | ef676f61e8a70b4e7777a16ffdcacd12921a92e2 (patch) | |
tree | f60d103f901f12826f8e1432b550969daeba5729 | |
parent | dac1f282f41a396dff2d53d7b44f58ec56ab29a6 (diff) |
Fixed 'Bug 33743 - [roslyn] No type inference on var'
-rw-r--r-- | main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs index 8579c82298..0905aaaed4 100644 --- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs +++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/SignatureMarkupCreator.cs @@ -393,6 +393,7 @@ namespace MonoDevelop.CSharp string GetNullableMarkup (ITypeSymbol t) { + Console.WriteLine ("nullable markup !!!"); var result = new StringBuilder (); result.Append (GetTypeReferenceString (t)); return result.ToString (); @@ -448,7 +449,7 @@ namespace MonoDevelop.CSharp return GetTypeParameterMarkup (t); if (t.TypeKind == TypeKind.Array || t.TypeKind == TypeKind.Pointer) return GetTypeReferenceString (t); - if (t.SpecialType == SpecialType.System_Nullable_T) + if (t.IsNullable ()) return GetNullableMarkup (t); var result = new StringBuilder (); if (IsNullableType (t)) |