6.7.0 on Linux with Swift 5.2.4 is broken on self reference
kandelvijaya opened this issue · comments
Vijaya Prakash Kandel commented
I have Linux ubuntu 20.04 running swift 5.2.4 that started throwing errors like this:
/home/bj/vaporapp/HNServer/.build/checkouts/MongoKitten/Sources/MongoKitten/ChangeStream.swift:116:42: error: reference to property 'getMoreInterval' in closure requires explicit 'self.' to make capture semantics explicit
if let getMoreInterval = getMoreInterval {
^
self.
......
/home/bj/vaporapp/HNServer/.build/checkouts/MongoKitten/Sources/MongoKitten/ChangeStream.swift:117:28: error: reference to property 'cursor' in closure requires explicit 'self.' to make capture semantics explicit
return cursor.cursor.eventLoop.flatScheduleTask(in: getMoreInterval) {
^
self.
[21/470] Compiling MongoKitten MongoDatabase.swift
Is this known?