mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mention the type, the requirement, and the extension in the error that follows. In editor mode, try to insert stubs for the missing requirement as well so the user isn't just left with a pile of unactionable errors.
7 lines
295 B
Swift
7 lines
295 B
Swift
public enum Enum { case one } // expected-note {{type declared here}}
|
|
public enum GenericEnum<T> { case one(Int) } // expected-note {{type declared here}}
|
|
|
|
public struct Struct {} // expected-note {{type declared here}}
|
|
public struct GenericStruct<T> {} // expected-note {{type declared here}}
|
|
|