@@ -153,7 +153,7 @@ private static bool Do()
153153
154154Friend Class TestClass
155155 Private Shared Function [Do]() As Boolean
156- Dim d = New Dictionary(Of String, String)
156+ Dim d = New Dictionary(Of String, String)()
157157 Dim output As string = Nothing
158158 Return d.TryGetValue("""", output)
159159 End Function
@@ -379,7 +379,7 @@ End Class
379379
380380Friend Class TestClass
381381 Private Sub TestMethod(ByVal str As String)
382- Dim student2 = New StudentName With {
382+ Dim student2 As StudentName = New StudentName With {
383383 .FirstName = ""Craig"",
384384 .LastName = ""Playstead""
385385 }
@@ -432,7 +432,7 @@ Public Property Converters As IList(Of Object)
432432End Class
433433
434434Friend Class Converter
435- Public Shared ReadOnly Settings = New SomeSettings With {
435+ Public Shared ReadOnly Settings As SomeSettings = New SomeSettings With {
436436 .Converters = {}
437437 }
438438End Class" ) ;
@@ -534,7 +534,7 @@ Imports System.Collections.Generic
534534
535535Namespace PreHOPL
536536 Friend Module Program
537- Private ReadOnly dict = New Dictionary(Of String, ValueTuple(Of Integer, [Delegate])) From {
537+ Private ReadOnly dict As Dictionary(Of String, ValueTuple(Of Integer, [Delegate])) = New Dictionary(Of String, ValueTuple(Of Integer, [Delegate]))( ) From {
538538 {""SAY"", (1, CType(AddressOf System.Console.WriteLine, Action(Of String)))}
539539 }
540540
0 commit comments