impoverloadconversioninttogenericintc1.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 28 行
VB
28 行
'Author:' V. Sudharsan (vsudharsan@novell.com)'' (C) 2005 Novell, Inc.'Expected to call LongOption Strict OffModule ImpConversionInttogenericInt Function fun(ByVal i As Short) Return 2 End Function Function fun(ByVal i As Long) Return 3 End Function Function fun(ByVal i As Byte) Return 4 End Function Function Main() As Integer Dim i As Integer = 10 i = fun(i) If i <> 3 Then System.Console.WriteLine("Implicit Conversion not working. Expected 3 but got " & i) : Return 1 End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?