From 17f023731b9364228998838c4fab7e974cdc47c4 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 13 Oct 2014 19:30:22 +0400 Subject: Workaround platform types --- src/Markdown/MarkdownProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Markdown/MarkdownProcessor.kt b/src/Markdown/MarkdownProcessor.kt index 19d5a8fb..040f2ad5 100644 --- a/src/Markdown/MarkdownProcessor.kt +++ b/src/Markdown/MarkdownProcessor.kt @@ -30,7 +30,7 @@ public class MarkdownTree(private val text: String, private val structure: Flywe } fun findChildByType(node: LighterASTNode, findType: IElementType) : LighterASTNode? { - val ref = Ref.create?>() + val ref: Ref?> = Ref.create?>() val count = structure.getChildren(node, ref) val children = ref.get() if (children != null) { @@ -53,7 +53,7 @@ public class MarkdownTree(private val text: String, private val structure: Flywe fun visit(node: LighterASTNode, action: (LighterASTNode, String, visitChildren: () -> Unit) -> Unit) { action(node, text) { - val ref = Ref.create?>() + val ref : Ref?> = Ref.create?>() val count = structure.getChildren(node, ref) val children = ref.get() if (children != null) { -- cgit