fixed iterating over template lines on linux

This commit is contained in:
Ilya Puchka
2017-10-08 01:53:41 +02:00
parent 97ab3cf31d
commit 5878c323a2
3 changed files with 9 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ class ForNode : NodeType {
var values: [Any]
if let dictionary = resolved as? [String: Any], !dictionary.isEmpty {
values = dictionary.map { ($0.key, $0.value) }
values = dictionary.map { ($0.key, $0.value) } as [(String, Any)]
} else if let array = resolved as? [Any] {
values = array
} else if let range = resolved as? CountableClosedRange<Int> {