[lang-ref] ( labeled_and_named_parameter ) ( swift )

@Test func labeledAndNamedParameter() {
	// func func01(labelA a: Int, labelB b: Int) -> Int
	func func01(value v: Int, offset o: Int) -> Int {
		return v + o
	}

	let r = func01(value: 3, offset: 5)

	#expect(r == 8)

	// Note: In Swift, argument order is fixed; labels donโ€™t allow reordering.
	// let r = func01(offset: 5, value: 3) // compile error
}