Possible bug with new ClassOverwrite warning Topic is solved

Report problems with documented functionality
User avatar
mviens
Posts: 43
Joined: 08 Jan 2014, 19:04

Possible bug with new ClassOverwrite warning

08 Jan 2018, 08:58

It took me a long time to determine what was causing so many errors in my script. I have condensed it down into the example below. When using the #NoEnv option, this script shows a warning on the arr2 line. Interestingly, if I comment out the line for arr1, there is no warning. Also, if I comment out the #NoEnv line, the warning is not displayed.

If this is not a bug, could someone please help me to understand why this is happening?

Code: Select all

#NoEnv                             ; when commented, no warnings
#Warn, All

arr0 := [,new Xyz()]
arr1 := [new Xyz(), new Xyz()]     ; when commented, no warning
arr2 := [,new Xyz()]               ; why does this line cause a warning

class Xyz {
    x := 1
    y := 2
    z := 3
}
Mike V.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 20 guests