Page 1 of 1

Possible bug with new ClassOverwrite warning

Posted: 08 Jan 2018, 08:58
by mviens
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
}

Re: Possible bug with new ClassOverwrite warning  Topic is solved

Posted: 10 Jan 2018, 04:26
by lexikos
It was a bug, fixed in v1.1.27.04.