From ac3e2aae362c3f62bc13fa8cc3e2118851dcd9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanislav=20Luke=C5=A1?= Date: Tue, 8 Aug 2017 14:40:30 +0000 Subject: [PATCH] Fixed import of assembly to dothtml compilation for types that were only referenced inside of generic type. --- .../Compilation/DefaultViewCompilerCodeEmitter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DotVVM.Framework/Compilation/DefaultViewCompilerCodeEmitter.cs b/src/DotVVM.Framework/Compilation/DefaultViewCompilerCodeEmitter.cs index 6778ecb2bf..0989897d33 100644 --- a/src/DotVVM.Framework/Compilation/DefaultViewCompilerCodeEmitter.cs +++ b/src/DotVVM.Framework/Compilation/DefaultViewCompilerCodeEmitter.cs @@ -698,6 +698,7 @@ public string EmitEnsureCollectionInitialized(string parentName, DotvvmProperty private TypeSyntax ParseTypeName(Type type) { + UseType(type); if(type == typeof(void)) { return SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword));