Closed as not planned
Description
typo - see error description 2 days later 🥺
Description
In result of overload functions / methods with same name but more parameters and these parameters get default values (line 23) the "simple" function (line 20) appears uncallable.

Reproduction
//
// main.swift
// MissingInitInfo
//
// Created by Sebastian Ritter on 26.12.23.
//
import Foundation
// ✅ expected error
//let _ = Printable ()
// 🆘 name is not set, but called is init with param *as name* and ignoring init without second parameter
let _ = Printable (from: "Sebastian")
// ✅ expected result
let _ = Printable (from: "Sebastian", as: "Mr. Ritter")
public class Printable {
public init (form sender : String) { // 🆘 uncallable (?) init method but no compiler message
print ("Hello from \(sender)!")
}
public init (from sender : String, as name : String = "Bastie") {
print ("Hello from \(name)?")
}
}
Expected behavior
Compiler warning at line 20 as uncallable method / function
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Additional information
No response