On May 5, 2016, at 7:00 PM, Ryan Lovelett wrote:
That number looks like a radar issue. Swift bugs typically take the
form
SR-#.
I don't work at Apple (nor do many people on this mailing list).
Therefore we cannot see the contents of that bug report.
Once again I suggest you file an issue at
> bug 23998571
That number looks like a radar issue. Swift bugs typically take the form
SR-#.
I don't work at Apple (nor do many people on this mailing list).
Therefore we cannot see the contents of that bug report.
Once again I suggest you file an issue at bugs.swift.org as that is the
OSS comm
On May 4, 2016, at 5:02 PM, Ryan Lovelett wrote:
Drop the extension and move the initializer to the MyHeap struct and
it
compiles for me on Swift 3.0. To me that indicates the answer to your
first question: I would think you do not have a syntax error. That is:
struct MyHeapElement {
var i
On Wed, May 4, 2016, at 10:41 AM, Jan E. Schotsman via swift-users
wrote:
> Hello,
>
> This code causes a segmentation fault:
>
> struct MyHeapElement
> {
> var index:Int
> var key:T
> }
>
> struct MyHeap
> {
> var elements = [MyHeapElement]()
> }
>
Hello,
This code causes a segmentation fault:
struct MyHeapElement
{
var index:Int
var key:T
}
struct MyHeap
{
var elements = [MyHeapElement]()
}
extension MyHeap
{
init( withElements elements:[MyHeapElement] )