fork(2) download
  1. Option Explicit Off
  2. Option Strict On
  3. Option Infer On
  4.  
  5. Imports System
  6.  
  7. Module Test
  8. Sub Main()
  9. obj = "42"
  10. Dim int = 42
  11. Dim dbl = 4.2
  12. 'Dim tst ' error BC30209: Option Strict On requires all variable declarations to have an 'As' clause.
  13. Console.WriteLine("obj:" & GetTypeOf(obj))
  14. Console.WriteLine("int:" & GetTypeOf(int))
  15. Console.WriteLine("dbl:" & GetTypeOf(dbl))
  16.  
  17. Console.ReadLine()
  18. End Sub
  19.  
  20. Function GetTypeOf(Of T)(v As T) As String
  21. Return GetType(T).FullName
  22. End Function
  23.  
  24. End Module
  25.  
  26.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.


/home/kzUsS6/prog.vb (3,13) : Error VBNC30206: 'Option' must be followed by 'Compare', 'Explicit', or 'Strict'.
Error recovery not implemented yet.
There were 1 errors and 0 warnings.
Compilation took 00:00:00.6785260
stdout
Standard output is empty