enum Material { case fire case water init(_ x: Int) { self = .fire } } func g(_ material: Material) {} g(.init(3))