Internal Error: Loop through function `.ResolveExpression`

IDE: Visual Studio X/Fire
Version: (develop)
Target (If relevant): OSX
This is a reduction that preserved a stack overflow.

Expected Behavior:
Compiler Errors.
Actual Behavior:
Stack overflow.

struct S {}

protocol P {}

extension S: ExpressibleByStringLiteral {
   typealias StringLiteralType = S
   public init(stringLiteral value: S) {
       self = value

extension P {
    public func foo(separator: S = "") {}

Thanks, logged as bugs://82795

bugs://82795 got closed with status fixed.

Although this was fixed for string literals, I just noticed that this occurs similarly for boolean and integer literals in (develop), when a type conforms to the literal protocol with itself as its literal type.

Oh, the things one finds when trying to build the Swift stdlib in Silver.

1 Like

bugs://82795 got reopened.

bugs://82795 got closed with status fixed.