Properties are not translated properly from C# for Swift and Mercury

Original C# code:

namespace ProductsApp.Models
{
    public class Product
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Category { get; set; }
        public decimal Price { get; set; }
    }
}

Mercury translation:

Namespace ProductsApp.Models

Public Class Product

      Public Property Id As Integer
      Return 
    End Get
    Set
           = value
    End Set
  End Property

  Public Property Name As String
      Return 
    End Get
    Set
       = value
    End Set
  End Property

  Public Property Category As String
      Return 
    End Get
    Set
       = value
    End Set
  End Property

  Public Property Price As Double
      Return 
    End Get
    Set
       = value
    End Set
  End Property

End Class


End Namespace

This should have been:

Namespace ProductsApp.Models

Public Class Product

      Public Property Id As Integer

  Public Property Name As String

  Public Property Category As String

  Public Property Price As Double

End Class


End Namespace

Swift translation:

open class Product { 
public var Id: Int32 {
	get {
		return 
	}
	set {
		 = newValue
	}
}

public var Name: String! {
	get {
		return 
	}
	set {
		 = newValue
	}
}

public var Category: String! {
	get {
		return 
	}
	set {
		 = newValue
	}
}

public var Price: Float64 {
	get {
		return 
	}
	set {
		 = newValue
	}
}
}

@evgeny.karpov.jr, this must be Oxidizer side. if I declare a clean property

var p2 = CGPropertyDefinition(“Test”)
p2.Type = “String”.AsTypeReference()
cls.Members.Add(p2)

I get, as expected

property Test: String;

or

Private Property Test As [String]

Thanks, logged as bugs://85673

bugs://85673 got closed with status fixed.

bugs://85673 got closed with status fixed.