@@ -2784,5 +2784,31 @@ public void TestGenerateLocalInDictionaryInitializer3()
@"using System . Collections . Generic ; class Program { static void Main ( string [ ] args ) { int i = 0 ; var x = new Dictionary < string , int > { [ ""Zero"" ] = i } ; } } ",
NewLines("Class [Class] \n Private Sub Method(i As Integer) \n [|foo|] = Function() \n Return 2 \n End Function \n End Sub \n End Class"),
NewLines("Imports System\n\nClass [Class]\n Private foo As Func(Of Integer)\n\n Private Sub Method(i As Integer)\n foo = Function()\n Return 2\n End Function\n End Sub\nEnd Class"),
NewLines("Class [Class] \n Private Sub Method(i As Integer) \n [|foo|] = Function() \n Return 2 \n End Function \n End Sub \n End Class"),
NewLines("Imports System\n\nClass [Class]\n Public Property foo As Func(Of Integer)\n\n Private Sub Method(i As Integer)\n foo = Function()\n Return 2\n End Function\n End Sub\nEnd Class"),
NewLines("Class [Class] \n Private Sub Method(i As Integer) \n [|foo|] = Function() \n Return 2 \n End Function \n End Sub \n End Class"),
NewLines("Class [Class] \n Private Sub Method(i As Integer)\n Dim foo As System.Func(Of Integer)\n foo = Function() \n Return 2 \n End Function \n End Sub \n End Class"),