about a constructor specifier bug

Reference ID

2bce20f0-4488-2d47-e1ae-fa8f06d5c2e2

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

It should not be possible to call a function that is not a constructor function with a constructor specifier, but it is and a bug occurred.

Steps to Reproduce

class1 := class:
    Property1 : int
  
MakeClass1():class1= class1:
    Property1 := 100

MakeClass1B<constructor>():=class1:
    MakeClass1<constructor>()
    
Main1():void = 
    Class1 := MakeClass1B()
    Print("Class1 = {Class1.Property1}")

Expected Result

compile error.

or

Class1 = 100

Observed Result

Class1 = 0

Platform(s)

windows