浏览代码

Temporary workarounds with func->bool issue.

Mark Sibly 9 年之前
父节点
当前提交
db0cf4df69
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      modules/std/collections/list.monkey2
  2. 1 1
      modules/std/collections/stack.monkey2

+ 2 - 1
modules/std/collections/list.monkey2

@@ -575,7 +575,8 @@ Class List<T> Implements IContainer<T>
 	@param compareFunc Function to be used to compare values when sorting.
 	
 	#end
-	Method Sort( ascending:Bool=True )
+	Method Sort( ascending:Int=True )
+	
 		If ascending
 			Sort( Lambda:Int( x:T,y:T )
 				Return x<=>y

+ 1 - 1
modules/std/collections/stack.monkey2

@@ -699,7 +699,7 @@ Class Stack<T> Implements IContainer<T>
 	@param hi Index of last value to sort.
 
 	#end
-	Method Sort( ascending:Bool=True )
+	Method Sort( ascending:Int=True )
 		If ascending
 			Sort( Lambda:Int( x:T,y:T )
 				Return x<=>y