[SR-5921] Default constructor for structs with default values don't have argument with default value #48480
Labels
compiler
The Swift compiler in itself
duplicate
Resolution: Duplicates another issue
feature
A feature request or implementation
improvement
memberwise init
Feature: Memberwise structure initializers
swift evolution implemented
Flag → feature: A feature that was approved through the Swift evolution process and implemented
Environment
Swift version 4.0 (swiftlang-900.0.63 clang-900.0.37)
Additional Detail from JIRA
md5: 105944886c15424a8e6da2a6070408e9
duplicates:
Issue Description:
Consider this struct:
This works:
However, this doesn't:
This is unintuitive. One would expect the default constructor for this struct to be defined as:
And not what currently seems to be defined as:
The text was updated successfully, but these errors were encountered: