diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Host/MvcRazorParser.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Host/MvcRazorParser.cs index 086f4ba2c1..ba7eb42e64 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Host/MvcRazorParser.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Host/MvcRazorParser.cs @@ -87,29 +87,7 @@ protected override IEnumerable GetTagHelperDescriptors( _viewImportsDirectiveDescriptors, errorSink); - var descriptors = visitor.GetDescriptors(documentRoot); - foreach (var descriptor in descriptors) - { - foreach (var attributeDescriptor in descriptor.Attributes) - { - if (attributeDescriptor.IsIndexer && - string.Equals( - attributeDescriptor.TypeName, - _modelExpressionTypeName, - StringComparison.Ordinal)) - { - errorSink.OnError( - SourceLocation.Undefined, - Resources.FormatMvcRazorParser_InvalidPropertyType( - descriptor.TypeName, - attributeDescriptor.Name, - _modelExpressionTypeName), - length: 0); - } - } - } - - return descriptors; + return visitor.GetDescriptors(documentRoot); } private static IEnumerable GetTagHelperDirectiveDescriptors( diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/TagHelpersWebSite.Home.Index.html b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/TagHelpersWebSite.Home.Index.html index dcf5fd12da..27bc4cf95a 100644 --- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/TagHelpersWebSite.Home.Index.html +++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/TagHelpersWebSite.Home.Index.html @@ -39,6 +39,11 @@

Current Tag Cloud from ViewComponentHelper:

Rendering Template:

Tag Cloud from Template:

Lorem,ipsum,dolor,sit,amet,consectetur,adipisicing,elit,sed,do,eiusmod,tempor,incididunt,ut,labore,et,dolore,magna,aliquaUt,enim
+
+

Dictionary Valued Model Expression

+
  • TagsToShow
  • Version.Build
+
+