From 1e6846867e4fb7b510f274d1f6f8a8e1ba827f24 Mon Sep 17 00:00:00 2001 From: Ilya Puchka Date: Wed, 29 Nov 2017 23:18:48 +0100 Subject: [PATCH] fixed compiling in swift 3 --- Sources/Inheritence.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Inheritence.swift b/Sources/Inheritence.swift index c656872..b9bf87a 100644 --- a/Sources/Inheritence.swift +++ b/Sources/Inheritence.swift @@ -4,7 +4,10 @@ class BlockContext { var blocks: [String: [BlockNode]] init(blocks: [String: BlockNode]) { - self.blocks = blocks.mapValues({ [$0] }) + self.blocks = [:] + blocks.forEach { (key, value) in + self.blocks[key] = [value] + } } func push(_ block: BlockNode, forKey blockName: String) {