Sub New statements out of order

2 posts, 0 answers
  1. Robert
    Robert avatar
    1 posts
    Member since:
    May 2011

    Posted 20 May 2011 Link to this post

    For one of my routines JD generates the VB code

    Public Sub New()
        Me.m_ClassContext = 4
    End Sub

    When this is pasted into VB.NET 2008 it produces the error "Constructor call is valid only as the first statement in an instance constructor".

    Reversing the two statements corrects the problem.
  2. Chris
    Chris avatar
    221 posts

    Posted 27 May 2011 Link to this post

    Hello Robert,
    Thanks for reporting this issue. We've logged it and it will be fixed for the official release in Q2 (beginning of July).

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top