labeld.vb

来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 58 行

VB
58
字号
' Positive Test' Test labels in functions''''''''''''''''''''''''''''''''''' vbc output''''''''''''''''''''''''''''''''''' Should be'Error BC30451: Name 'y' is not declared'Error BC30451: Name 'z' is not declared''''''''''''''''''''''''''''''''''''''''' mbas output''''''''''''''''''''''''''''''''''''''''''' syntax error, got token `IDENTIFIER', expecting EOL COLON'flabel.vb(21,0) error BC29999: Line:     21 Col: 0'VirtLine: 21 Token: 471'Parsing error in flabel.vb'Mono.MonoBASIC.yyParser.yyException: irrecoverable syntax error'in <0x0081e> Mono.MonoBASIC.Parser:yyparse (Mono.MonoBASIC.yyParser.yyInput)'in <0x002b0> Mono.MonoBASIC.Parser:parse ()''''''''''''''''''''''''''''''''''''''''''''''Imports SystemModule labelD    Function Abs1() As Integer        Dim x As Integer        x = 1        If x >= 0 Then            GoTo x        End If        x = -xx:y:z:        Return x    End Function    Function Main() As Integer        Dim x As Integer, y As Integer        x = Abs1()        y = Abs1()        If x <> 1 Then            System.Console.WriteLine("#Lbl3") : Return 1        End If        If y <> 1 Then            System.Console.WriteLine("#Lbl4") : Return 1        End If    End FunctionEnd Module

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?