fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim n As Integer
  6. n = Console.ReadLine
  7. Do While n <> 42
  8. System.Console.WriteLine(n)
  9. n = Console.ReadLine
  10. Loop
  11. System.Console.WriteLine(test("patient","101"))
  12. End Sub
  13.  
  14. Public Function Test(byVal t as String, byVal p as string) as string
  15. dim retVal as String ="test"
  16. return retVal
  17. end Function
  18.  
  19. End Class
  20.  
Runtime error #stdin #stdout #stderr 0.06s 36152KB
stdin
1
2
10
42
11
stdout
Standard output is empty
stderr
Unhandled Exception: System.InvalidProgramException: Invalid IL code in Test:Main (): IL_002e: ldarg.0