79535587

Date: 2025-03-26 06:44:33
Score: 1
Natty:
Report link

The secret was to replace class with struct. Then everything worked as desired. Thanks to lorem ipsum!

Here is the (slightly) adjusted code:

struct Limit {
    var value: Int
    var from: Double
    var to: Double
    
    init(value: Int, from: Double, to: Double) {
        self.value = value
        self.from = from
        self.to = to
    }
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user2836375