You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call for an intersection on a ConstructionLine without an explicit extended parameter the value of extended is false instead of defaulting to true. In this instance I don't know if the line I am call intersection on is a regular line or a construction line.
I suspect that if I upcast the line to a construction line it will get the default value of extended right, but it seems like it should do so anyway. This is probably a result of this being a compiler generated default, rather than a runtime determined value, but the latter could be accomplished by creating two entry points for the actual function, one with the parameter and one without that assigns the correct default.
The text was updated successfully, but these errors were encountered:
I think this is Won't Do, as we're moving towards having default arguments inlined into callers and that means we'd have to use the static type. If you really want this behavior, make the default argument call a method that the subclass can override.
Environment
Xcode 7.2.1
Additional Detail from JIRA
md5: 62322557f8f138fdf83c588e65ff7a46
Issue Description:
In one file I have:
When I call for an intersection on a ConstructionLine without an explicit extended parameter the value of extended is false instead of defaulting to true. In this instance I don't know if the line I am call intersection on is a regular line or a construction line.
I suspect that if I upcast the line to a construction line it will get the default value of extended right, but it seems like it should do so anyway. This is probably a result of this being a compiler generated default, rather than a runtime determined value, but the latter could be accomplished by creating two entry points for the actual function, one with the parameter and one without that assigns the correct default.
The text was updated successfully, but these errors were encountered: