From b80460746a240cb9bb2381d77bb7055b8f672087 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Sun, 2 Jan 2011 20:12:25 +0300 Subject: [PATCH] sample update: constructor doesn't have fun keyword before this --- examples/src/priorityqueues/BinaryHeap.jetl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/src/priorityqueues/BinaryHeap.jetl b/examples/src/priorityqueues/BinaryHeap.jetl index 1b46d2af79b..6a87b434c1f 100644 --- a/examples/src/priorityqueues/BinaryHeap.jetl +++ b/examples/src/priorityqueues/BinaryHeap.jetl @@ -2,7 +2,7 @@ class BinaryHeap : IPriorityQueue { private val data : IMutableList private val compare : Comparison - fun this(data : IIterable, compare : Comparison = naturalOrder) { + this(data : IIterable, compare : Comparison = naturalOrder) { this.compare = compare this.data = ArrayList(data) siftDown(* this.data.size / 2 .. 0) @@ -13,12 +13,12 @@ class BinaryHeap : IPriorityQueue { */ } - fun this(compare : Comparison) { + this(compare : Comparison) { this.compare = compare this.data = ArrayList() } - fun this() { + this() { this.data = ArrayList() Assert(T is IComparable) this.comparator = naturalOrder