fork download
  1. Imports System.Linq
  2. Imports System.Text.RegularExpressions
  3.  
  4. Public Class Test
  5. Public Shared Sub Main()
  6. Dim s As String = "abcdefgh"
  7. For Each part As var In Regex.Matches(s, ".{2}").Cast(Of Match)()
  8. Console.WriteLine(part.Value)
  9. Next
  10. End Sub
  11. End Class
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/sx9Cct/prog.vb (1,17) : Error VBNC30456: 'Linq' is not a member of 'Global.System'.
/home/sx9Cct/prog.vb (1,17) : Warning VBNC40056: The import 'System.Linq' could not be found.
1 errors, but compilation succeeded? Resolve
/home/sx9Cct/<MyGenerator> (1,1) : Error VBNC99999: Unexpected error: There has been an internal error in the compiler: Consistency check failed
  at vbnc.Compiler.VerifyConsistency (Boolean result, System.String Location) [0x000a3] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:132 
  at vbnc.Compiler.Compile_Resolve () [0x00070] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:403 
  at vbnc.Compiler.Compile () [0x0028a] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:561 
Compilation took 00:00:00.6684310
stdout
Standard output is empty