View Single Post
  #1 (permalink)  
Old 03-04-2010, 08:58 AM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default Redeclared variables bug (or not!)

This tiny program gives the expected variable redeclaration error when run in the IDE but the optimising compiler doesn't detect this and emits code that causes a type conversion error in csc.exe. This may or may not be considered a bug as most programs will be run in the IDE first but the error during compilation is unhelpfully different to that in the IDE.

Code:
Sub Globals
  
Dim d 
End Sub

Sub App_Start
  test
End Sub

Sub test
  
Dim d As Number
  d = 
23
End Sub
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote