Possible bug with new ClassOverwrite warning Topic is solved

Report problems with documented functionality
User avatar
mviens
Posts: 41
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.
lexikos
Posts: 6176
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Possible bug with new ClassOverwrite warning  Topic is solved

10 Jan 2018, 04:26

It was a bug, fixed in v1.1.27.04.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 4 guests